All pastes #491400 Raw Edit

Diff

public text v1 · immutable
·published 2007-05-16 17:10 UTC
rendered paste body
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<Interface> obj = Create (classId);-  Ptr<T> i = obj->QueryInterface<T> (iid);+  Ptr<T> 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<Interface> obj = Create (classId, a1);-  Ptr<T> i = obj->QueryInterface<T> (iid);+  Ptr<T> 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<Interface> obj = Create (classId, a1, a2);-  Ptr<T> i = obj->QueryInterface<T> (iid);+  Ptr<T> 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 <typename T>-  Ptr<T> QueryInterface (InterfaceId iid) const;+  Ptr<T> QueryInterface (InterfaceId iid, T *dummy = (T *) 0) const;    /**    * \param interface another interface@@ -114,7 +114,7 @@ namespace ns3 {  template <typename T> Ptr<T>-Interface::QueryInterface (InterfaceId iid) const+Interface::QueryInterface (InterfaceId iid, T *dummy) const {   Ptr<Interface> found = DoQueryInterface (iid);   if (found != 0)