Put back an assertion in Object::DoQueryInterface, erroneously removed during branch merging.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Mon, 01 Oct 2007 11:42:41 +0100
changeset 1651 c17a43dcd1a0
parent 1650 bcfb726651bb
child 1652 24325ff39a0d
Put back an assertion in Object::DoQueryInterface, erroneously removed during branch merging.
src/core/object.cc
--- a/src/core/object.cc	Fri Sep 28 19:13:19 2007 +0100
+++ b/src/core/object.cc	Mon Oct 01 11:42:41 2007 +0100
@@ -192,6 +192,7 @@
 Ptr<Object>
 Object::DoQueryInterface (InterfaceId iid) const
 {
+  NS_ASSERT (Check ());
   const Object *currentObject = this;
   do {
     NS_ASSERT (currentObject != 0);