samples/main-ptr.cc
changeset 2230 9f13ac3291e0
parent 732 df256f32b6ae
--- a/samples/main-ptr.cc	Sun Dec 30 19:36:44 2007 -0800
+++ b/samples/main-ptr.cc	Wed Jan 02 09:09:24 2008 +0100
@@ -49,7 +49,7 @@
   {
     // Create a new object of type A, store it in global 
     // variable g_a
-    Ptr<A> a = Create<A> ();
+    Ptr<A> a = CreateObject<A> ();
     a->Method ();
     Ptr<A> prev = StoreA (a);
     NS_ASSERT (prev == 0);
@@ -58,7 +58,7 @@
   {
     // Create a new object of type A, store it in global 
     // variable g_a, get a hold on the previous A object.
-    Ptr<A> a = Create<A> ();
+    Ptr<A> a = CreateObject<A> ();
     Ptr<A> prev = StoreA (a);
     // call method on object
     prev->Method ();