Changeset 11071 for code/trunk/test/core/class/SuperTest.cc
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/test/core/class/SuperTest.cc
r10624 r11071 14 14 { 15 15 public: 16 TestClass(Context* context = NULL) : BaseObject(context), changedNameBase_(false), xmlPortBase_(false), modeBase_(XMLPort::NOP)16 TestClass(Context* context = nullptr) : BaseObject(context), changedNameBase_(false), xmlPortBase_(false), modeBase_(XMLPort::NOP) 17 17 { 18 18 RegisterObject(TestClass); 19 19 } 20 20 21 virtual void changedName() 21 virtual void changedName() override 22 22 { 23 23 this->changedNameBase_ = true; 24 24 } 25 25 26 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) 26 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override 27 27 { 28 28 this->xmlPortBase_ = true; … … 38 38 { 39 39 public: 40 TestSubclass(Context* context = NULL) : TestClass(context), changedNameSubclass_(false), xmlPortSubclass_(false), modeSubclass_(XMLPort::NOP)40 TestSubclass(Context* context = nullptr) : TestClass(context), changedNameSubclass_(false), xmlPortSubclass_(false), modeSubclass_(XMLPort::NOP) 41 41 { 42 42 RegisterObject(TestSubclass); 43 43 } 44 44 45 virtual void changedName() 45 virtual void changedName() override 46 46 { 47 47 this->changedNameSubclass_ = true; … … 50 50 } 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override 53 53 { 54 54 this->xmlPortSubclass_ = true; … … 70 70 { 71 71 public: 72 virtual void SetUp() 72 virtual void SetUp() override 73 73 { 74 74 new IdentifierManager(); 75 75 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); 76 Context::setRootContext(new Context( NULL));76 Context::setRootContext(new Context(nullptr)); 77 77 Identifier::initConfigValues_s = false; // TODO: hack! 78 78 IdentifierManager::getInstance().createClassHierarchy(); 79 79 } 80 80 81 virtual void TearDown() 81 virtual void TearDown() override 82 82 { 83 83 IdentifierManager::getInstance().destroyClassHierarchy(); … … 132 132 EXPECT_EQ(XMLPort::NOP, test.modeSubclass_); 133 133 134 Element* element = NULL;134 Element* element = nullptr; 135 135 test.XMLPort(*element, XMLPort::SaveObject); 136 136
Note: See TracChangeset
for help on using the changeset viewer.