samples/main-random-walk.cc
changeset 2230 9f13ac3291e0
parent 1818 fbdc8361dc77
child 2258 666099a753e0
child 2399 fd9d94d518d2
--- a/samples/main-random-walk.cc	Sun Dec 30 19:36:44 2007 -0800
+++ b/samples/main-random-walk.cc	Wed Jan 02 09:09:24 2008 +0100
@@ -45,8 +45,8 @@
 
   for (uint32_t i = 0; i < 100; i++)
     {
-      Ptr<Node> node = Create<Node> ();
-      node->AddInterface (Create<MobilityModelNotifier> ());
+      Ptr<Node> node = CreateObject<Node> ();
+      node->AddInterface (CreateObject<MobilityModelNotifier> ());
     }
 
   topology.Layout (NodeList::Begin (), NodeList::End ());