Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2016, 10:29:21 PM (8 years ago)
Author:
landauf
Message:

merged branch cpp11_v3 back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/test/core/class/SuperTest.cc

    r10624 r11071  
    1414        {
    1515            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)
    1717                {
    1818                    RegisterObject(TestClass);
    1919                }
    2020
    21                 virtual void changedName()
     21                virtual void changedName() override
    2222                {
    2323                    this->changedNameBase_ = true;
    2424                }
    2525
    26                 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode)
     26                virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override
    2727                {
    2828                    this->xmlPortBase_ = true;
     
    3838        {
    3939            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)
    4141                {
    4242                    RegisterObject(TestSubclass);
    4343                }
    4444
    45                 virtual void changedName()
     45                virtual void changedName() override
    4646                {
    4747                    this->changedNameSubclass_ = true;
     
    5050                }
    5151
    52                 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode)
     52                virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override
    5353                {
    5454                    this->xmlPortSubclass_ = true;
     
    7070        {
    7171            public:
    72                 virtual void SetUp()
     72                virtual void SetUp() override
    7373                {
    7474                    new IdentifierManager();
    7575                    ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
    76                     Context::setRootContext(new Context(NULL));
     76                    Context::setRootContext(new Context(nullptr));
    7777                    Identifier::initConfigValues_s = false; // TODO: hack!
    7878                    IdentifierManager::getInstance().createClassHierarchy();
    7979                }
    8080
    81                 virtual void TearDown()
     81                virtual void TearDown() override
    8282                {
    8383                    IdentifierManager::getInstance().destroyClassHierarchy();
     
    132132        EXPECT_EQ(XMLPort::NOP, test.modeSubclass_);
    133133
    134         Element* element = NULL;
     134        Element* element = nullptr;
    135135        test.XMLPort(*element, XMLPort::SaveObject);
    136136
Note: See TracChangeset for help on using the changeset viewer.