examples/tutorial/fourth.cc
changeset 11432 d2656819dd54
parent 10978 754c8256c35c
child 11598 b4d1339b4913
--- a/examples/tutorial/fourth.cc	Mon Jun 08 16:38:30 2015 -0700
+++ b/examples/tutorial/fourth.cc	Tue Jun 09 12:59:59 2015 -0700
@@ -26,10 +26,15 @@
 class MyObject : public Object
 {
 public:
+  /**
+   * Register this type.
+   * \return The TypeId.
+   */
   static TypeId GetTypeId (void)
   {
     static TypeId tid = TypeId ("MyObject")
-      .SetParent (Object::GetTypeId ())
+      .SetParent<Object> ()
+      .SetGroupName ("Tutorial")
       .AddConstructor<MyObject> ()
       .AddTraceSource ("MyInteger",
                        "An integer value to trace.",