- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/test/core/class/SubclassIdentifierTest.cc
r10624 r11054 13 13 { 14 14 public: 15 TestClass(Context* context = NULL) { RegisterObject(TestClass); }15 TestClass(Context* context = nullptr) { RegisterObject(TestClass); } 16 16 }; 17 17 … … 19 19 { 20 20 public: 21 TestSubclass(Context* context = NULL) { RegisterObject(TestSubclass); }21 TestSubclass(Context* context = nullptr) { RegisterObject(TestSubclass); } 22 22 }; 23 23 … … 29 29 { 30 30 public: 31 virtual void SetUp() 31 virtual void SetUp() override 32 32 { 33 33 new IdentifierManager(); 34 34 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 35 Context::setRootContext(new Context( NULL));35 Context::setRootContext(new Context(nullptr)); 36 36 Identifier::initConfigValues_s = false; // TODO: hack! 37 37 IdentifierManager::getInstance().createClassHierarchy(); 38 38 } 39 39 40 virtual void TearDown() 40 virtual void TearDown() override 41 41 { 42 42 IdentifierManager::getInstance().destroyClassHierarchy(); … … 77 77 subclassIdentifier = Class(TestSubclass); 78 78 79 TestClass* instance = subclassIdentifier.fabricate( NULL);80 ASSERT_TRUE(instance != NULL);79 TestClass* instance = subclassIdentifier.fabricate(nullptr); 80 ASSERT_TRUE(instance != nullptr); 81 81 EXPECT_EQ(Class(TestSubclass), instance->getIdentifier()); 82 82 delete instance;
Note: See TracChangeset
for help on using the changeset viewer.