Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 9, 2013, 9:26:46 PM (11 years ago)
Author:
landauf
Message:

BaseObject now requires a Context instead of a creator (BaseObject*) in its constructor.
Namespace, Level, and Scene inherit from Context

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/test/core/object/ContextTest.cc

    • Property svn:eol-style set to native
    r9610 r9629  
    1111        {
    1212            public:
    13                 SubclassContext() { RegisterRootObject(SubclassContext); }
     13                SubclassContext() : Context(NULL) { RegisterRootObject(SubclassContext); }
    1414        };
    1515    }
     
    1717    TEST(ContextTest, CanCreateContext)
    1818    {
    19         Context context;
     19        Context context(NULL);
    2020    }
    2121
     
    2727    TEST(ContextTest, ContextIsItsOwnContext)
    2828    {
    29         Context context;
     29        Context context(NULL);
    3030        EXPECT_EQ(&context, context.getContext());
    3131    }
Note: See TracChangeset for help on using the changeset viewer.