Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2015, 11:40:28 AM (9 years ago)
Author:
muemart
Message:

Run clang-modernize -add-override
A few notes:

  • There are probably some overrides missing, especially in funky templatey code
  • Virtual methods with wrong signatures were not fixed, needs to be done by hand (only warnings get emitted)
Location:
code/branches/cpp11_v2/src/libraries/core/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/class/Identifier.h

    r10774 r10817  
    289289            bool initializeObject(T* object);
    290290
    291             virtual void updateConfigValues(bool updateChildren = true) const;
    292 
    293             virtual const std::type_info& getTypeInfo()
     291            virtual void updateConfigValues(bool updateChildren = true) const override;
     292
     293            virtual const std::type_info& getTypeInfo() override
    294294                { return typeid(T); }
    295295
    296             virtual bool canDynamicCastObjectToIdentifierClass(Identifiable* object) const
     296            virtual bool canDynamicCastObjectToIdentifierClass(Identifiable* object) const override
    297297                { return dynamic_cast<T*>(object) != nullptr; }
    298298
    299             virtual void destroyObjects();
     299            virtual void destroyObjects() override;
    300300
    301301            static ClassIdentifier<T>* getIdentifier();
  • code/branches/cpp11_v2/src/libraries/core/class/Super.h

    r10768 r10817  
    584584        // Creates the super-function-callers by calling the first SuperFunctionCondition check
    585585        // This get's called within the initialization of an Identifier
    586         virtual void createSuperFunctionCaller() const
     586        virtual void createSuperFunctionCaller() const override
    587587        {
    588588            SuperFunctionCondition<0, T, 0, 0>::superCheck();
Note: See TracChangeset for help on using the changeset viewer.