diff -r 2f285162b6ca src/core/component-manager.h --- a/src/core/component-manager.h Tue May 15 17:12:36 2007 +0200 +++ b/src/core/component-manager.h Wed May 16 18:08:35 2007 +0100 @@ -227,7 +227,7 @@ ComponentManager::Create (ClassId classI ComponentManager::Create (ClassId classId, InterfaceId iid) { Ptr obj = Create (classId); - Ptr i = obj->QueryInterface (iid); + Ptr i = obj->QueryInterface (iid, (T *) 0); return i; } @@ -236,7 +236,7 @@ ComponentManager::Create (ClassId classI ComponentManager::Create (ClassId classId, InterfaceId iid, T1 a1) { Ptr obj = Create (classId, a1); - Ptr i = obj->QueryInterface (iid); + Ptr i = obj->QueryInterface (iid, (T *) 0); return i; } @@ -245,7 +245,7 @@ ComponentManager::Create (ClassId classI ComponentManager::Create (ClassId classId, InterfaceId iid, T1 a1, T2 a2) { Ptr obj = Create (classId, a1, a2); - Ptr i = obj->QueryInterface (iid); + Ptr i = obj->QueryInterface (iid, (T *) 0); return i; } diff -r 2f285162b6ca src/core/interface.h --- a/src/core/interface.h Tue May 15 17:12:36 2007 +0200 +++ b/src/core/interface.h Wed May 16 18:06:54 2007 +0100 @@ -58,7 +58,7 @@ public: * \param iid the Interface id of the requested interface */ template - Ptr QueryInterface (InterfaceId iid) const; + Ptr QueryInterface (InterfaceId iid, T *dummy = (T *) 0) const; /** * \param interface another interface @@ -114,7 +114,7 @@ namespace ns3 { template Ptr -Interface::QueryInterface (InterfaceId iid) const +Interface::QueryInterface (InterfaceId iid, T *dummy) const { Ptr found = DoQueryInterface (iid); if (found != 0)