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
Files:
45 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/ConfigurablePaths.cc

    r10769 r10817  
    5454#include "util/Exception.h"
    5555#include "commandline/CommandLineIncludes.h"
     56#include "core/ApplicationPaths.h"
    5657
    5758// Differentiate Boost Filesystem v2 and v3
  • code/branches/cpp11_v2/src/libraries/core/Core.h

    r10624 r10817  
    4545
    4646#include <string>
     47#include <list>
    4748#include "util/DestructionHelper.h"
    4849#include "util/Singleton.h"
  • code/branches/cpp11_v2/src/libraries/core/CoreIncludes.h

    r10765 r10817  
    221221        struct InheritsFromClass : public Identifier::InheritsFrom
    222222        {
    223             virtual Identifier* getParent() const { return Class(T); }
     223            virtual Identifier* getParent() const override { return Class(T); }
    224224        };
    225225
     
    231231            ~StaticallyInitializedIdentifier() { delete identifier_; }
    232232
    233             virtual void load()
     233            virtual void load() override
    234234            {
    235235                IdentifierManager::getInstance().addIdentifier(this->identifier_);
    236236            }
    237237
    238             virtual void unload()
     238            virtual void unload() override
    239239            {
    240240                IdentifierManager::getInstance().removeIdentifier(this->identifier_);
  • code/branches/cpp11_v2/src/libraries/core/CoreStaticInitializationHandler.h

    r10624 r10817  
    4343            CoreStaticInitializationHandler() : bInitInstances_(false) {}
    4444
    45             virtual void setupHandler();
    46             virtual void shutdownHandler();
     45            virtual void setupHandler() override;
     46            virtual void shutdownHandler() override;
    4747
    48             virtual void loadModule(ModuleInstance* module);
    49             virtual void unloadModule(ModuleInstance* module);
     48            virtual void loadModule(ModuleInstance* module) override;
     49            virtual void unloadModule(ModuleInstance* module) override;
    5050
    5151            inline void setInitInstances(bool bInitInstances)
  • code/branches/cpp11_v2/src/libraries/core/GUIManager.cc

    r10775 r10817  
    124124    {
    125125    public:
    126         void logEvent(const CEGUI::String& message, CEGUI::LoggingLevel level = CEGUI::Standard)
     126        void logEvent(const CEGUI::String& message, CEGUI::LoggingLevel level = CEGUI::Standard) override
    127127        {
    128128            OutputLevel orxonoxLevel = level::debug_output;
     
    143143
    144144        /// Carbon copy from CEGUIDefaultLogger.cpp with a bugfix for Windows
    145         void setLogFilename(const CEGUI::String& filename, bool append = false)
     145        void setLogFilename(const CEGUI::String& filename, bool append = false) override
    146146        {
    147147            // Close current log file (if any)
     
    228228    public:
    229229        /// Callback from Ogre invoked before other stuff in our target queue is rendered
    230         void renderQueueStarted(Ogre::uint8 id, const Ogre::String& invocation, bool& skipThisQueue)
     230        void renderQueueStarted(Ogre::uint8 id, const Ogre::String& invocation, bool& skipThisQueue) override
    231231        {
    232232            if (id == Ogre::RENDER_QUEUE_OVERLAY && invocation.empty())
  • code/branches/cpp11_v2/src/libraries/core/GUIManager.h

    r10771 r10817  
    169169
    170170        // keyHandler functions
    171         void buttonPressed (const KeyEvent& evt);
    172         void buttonReleased(const KeyEvent& evt);
     171        void buttonPressed (const KeyEvent& evt) override;
     172        void buttonReleased(const KeyEvent& evt) override;
    173173
    174174        // mouseHandler functions
    175         void buttonPressed (MouseButtonCode::ByEnum id);
    176         void buttonReleased(MouseButtonCode::ByEnum id);
    177         void mouseMoved    (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize);
    178         void mouseScrolled (int abs, int rel);
     175        void buttonPressed (MouseButtonCode::ByEnum id) override;
     176        void buttonReleased(MouseButtonCode::ByEnum id) override;
     177        void mouseMoved    (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) override;
     178        void mouseScrolled (int abs, int rel) override;
    179179        void mouseLeft     ();
    180180
    181181        // window event handler
    182         virtual void windowResized(unsigned int newWidth, unsigned int newHeight);
    183         virtual void windowFocusChanged(bool bFocus);
     182        virtual void windowResized(unsigned int newWidth, unsigned int newHeight) override;
     183        virtual void windowFocusChanged(bool bFocus) override;
    184184
    185185#ifdef ORXONOX_OLD_CEGUI
  • code/branches/cpp11_v2/src/libraries/core/Game.h

    r10772 r10817  
    135135        {
    136136        public:
    137             std::shared_ptr<GameState> fabricateInternal(const GameStateInfo& info)
     137            std::shared_ptr<GameState> fabricateInternal(const GameStateInfo& info) override
    138138                { return std::shared_ptr<GameState>(std::make_shared<T>(info)); }
    139139        };
  • code/branches/cpp11_v2/src/libraries/core/GraphicsManager.cc

    r10771 r10817  
    8282    {
    8383    public:
    84         void windowResized     (Ogre::RenderWindow* rw)
     84        void windowResized     (Ogre::RenderWindow* rw) override
    8585            { orxonox::WindowEventListener::resizeWindow(rw->getWidth(), rw->getHeight()); }
    86         void windowFocusChange (Ogre::RenderWindow* rw)
     86        void windowFocusChange (Ogre::RenderWindow* rw) override
    8787            { orxonox::WindowEventListener::changeWindowFocus(rw->isActive()); }
    88         void windowClosed      (Ogre::RenderWindow* rw)
     88        void windowClosed      (Ogre::RenderWindow* rw) override
    8989            { orxonox::Game::getInstance().stop(); }
    90         void windowMoved       (Ogre::RenderWindow* rw)
     90        void windowMoved       (Ogre::RenderWindow* rw) override
    9191            { orxonox::WindowEventListener::moveWindow(); }
    9292    };
  • code/branches/cpp11_v2/src/libraries/core/GraphicsManager.h

    r10771 r10817  
    111111        // event from Ogre::LogListener
    112112#if OGRE_VERSION >= 0x010800
    113         void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName, bool& skipThisMessage);
     113        void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName, bool& skipThisMessage) override;
    114114#else
    115115        void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName);
  • code/branches/cpp11_v2/src/libraries/core/LuaState.cc

    r10771 r10817  
    3333extern "C" {
    3434#include <lua.h>
    35 #include <lualib.h>
     35#include <lualib.h>     
    3636}
    3737#include <loki/ScopeGuard.h>
  • code/branches/cpp11_v2/src/libraries/core/Namespace.h

    r9667 r10817  
    5050            virtual ~Namespace();
    5151
    52             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     52            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
    5353
    5454            void loadObjects(BaseObject* object);
  • code/branches/cpp11_v2/src/libraries/core/Template.h

    r9667 r10817  
    5454            virtual ~Template();
    5555
    56             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    57             virtual void changedName();
     56            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
     57            virtual void changedName() override;
    5858
    5959            inline void setLink(const std::string& link)
  • code/branches/cpp11_v2/src/libraries/core/XMLPort.h

    r10768 r10817  
    459459            }
    460460
    461             virtual XMLPortParamContainer& defaultValue(unsigned int index, const MultiType& param)
     461            virtual XMLPortParamContainer& defaultValue(unsigned int index, const MultiType& param) override
    462462            {
    463463                if (!this->loadexecutor_->defaultValueSet(index))
     
    465465                return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_);
    466466            }
    467             virtual XMLPortParamContainer& defaultValues(const MultiType& param1)
     467            virtual XMLPortParamContainer& defaultValues(const MultiType& param1) override
    468468            {
    469469                if (!this->loadexecutor_->defaultValueSet(0))
     
    471471                return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_);
    472472            }
    473             virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2)
     473            virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2) override
    474474            {
    475475                if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1)))
     
    477477                return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_);
    478478            }
    479             virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3)
     479            virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3) override
    480480            {
    481481                if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1)) || (!this->loadexecutor_->defaultValueSet(2)))
     
    483483                return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_);
    484484            }
    485             virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4)
     485            virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4) override
    486486            {
    487487                if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1)) || (!this->loadexecutor_->defaultValueSet(2)) || (!this->loadexecutor_->defaultValueSet(3)))
     
    489489                return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_);
    490490            }
    491             virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5)
     491            virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5) override
    492492            {
    493493                if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1)) || (!this->loadexecutor_->defaultValueSet(2)) || (!this->loadexecutor_->defaultValueSet(3)) || (!this->loadexecutor_->defaultValueSet(4)))
     
    556556            }
    557557
    558             void callLoadExecutor(BaseObject* object, BaseObject* newObject)
     558            void callLoadExecutor(BaseObject* object, BaseObject* newObject) override
    559559            {
    560560                T* castObject = orxonox_cast<T*>(object);
  • 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();
  • code/branches/cpp11_v2/src/libraries/core/command/ConsoleCommandIncludes.h

    r10765 r10817  
    316316            ~StaticallyInitializedConsoleCommand() { delete command_; }
    317317
    318             virtual void load();
    319             virtual void unload();
     318            virtual void load() override;
     319            virtual void unload() override;
    320320
    321321            inline ConsoleCommand& getCommand()
  • code/branches/cpp11_v2/src/libraries/core/command/ConsoleCommandManager.h

    r10769 r10817  
    3838
    3939#include "util/Singleton.h"
     40
     41#include <map>
    4042
    4143namespace orxonox
  • code/branches/cpp11_v2/src/libraries/core/command/Functor.h

    r10768 r10817  
    249249
    250250            // see Functor::operator()()
    251             MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null)
     251            MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) override
    252252            {
    253253                // call the function if an object was assigned
     
    262262
    263263            // see Functor::getType()
    264             inline Functor::Type::Enum getType() const
     264            inline Functor::Type::Enum getType() const override
    265265                { return Functor::Type::Member; }
    266266
     
    280280
    281281            // see Functor::setRawObjectPointer()
    282             inline void setRawObjectPointer(void* object)
     282            inline void setRawObjectPointer(void* object) override
    283283                { this->setObject((O*)object); }
    284284            // see Functor::getRawObjectPointer()
    285             inline void* getRawObjectPointer() const
     285            inline void* getRawObjectPointer() const override
    286286                { return this->object_; }
    287287
    288288            // see Functor::setSafeMode()
    289             inline void setSafeMode(bool bSafeMode)
     289            inline void setSafeMode(bool bSafeMode) override
    290290            {
    291291                if (bSafeMode == this->bSafeMode_)
     
    309309
    310310            /// Will be called by Destroyable::~Destroyable() if the stored object is deleted and the Functor is in safe mode.
    311             inline void objectDeleted()
     311            inline void objectDeleted() override
    312312                { this->object_ = nullptr; }
    313313
     
    328328
    329329            // see Functor::operator()()
    330             MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null)
     330            MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) override
    331331            {
    332332                return (*this)((void*)nullptr, param1, param2, param3, param4, param5);
     
    334334
    335335            // see Functor::getType()
    336             inline Functor::Type::Enum getType() const
     336            inline Functor::Type::Enum getType() const override
    337337                { return Functor::Type::Static; }
    338338
    339339            // see Functor::setRawObjectPointer()
    340             inline void setRawObjectPointer(void*)
     340            inline void setRawObjectPointer(void*) override
    341341                { orxout(internal_warning) << "Can't assign an object pointer to a static functor" << endl; }
    342342            // see Functor::getRawObjectPointer()
    343             inline void* getRawObjectPointer() const
     343            inline void* getRawObjectPointer() const override
    344344                { return nullptr; }
    345345
    346346            // see Functor::setSafeMode()
    347             inline void setSafeMode(bool) {}
     347            inline void setSafeMode(bool) override {}
    348348    };
    349349
  • code/branches/cpp11_v2/src/libraries/core/command/IOConsolePOSIX.h

    r8858 r10817  
    6565
    6666        // Methods from ShellListener
    67         void linesChanged();
    68         void lineAdded();
    69         void inputChanged();
    70         void cursorChanged();
    71         void executed();
    72         void exit();
     67        void linesChanged() override;
     68        void lineAdded() override;
     69        void inputChanged() override;
     70        void cursorChanged() override;
     71        void executed() override;
     72        void exit() override;
    7373
    7474        bool willPrintStatusLines();
  • code/branches/cpp11_v2/src/libraries/core/command/IOConsoleWindows.h

    r9676 r10817  
    6767
    6868        // Methods from ShellListener
    69         void linesChanged();
    70         void lineAdded();
    71         void inputChanged();
    72         void cursorChanged();
    73         void executed();
    74         void exit();
     69        void linesChanged() override;
     70        void lineAdded() override;
     71        void inputChanged() override;
     72        void cursorChanged() override;
     73        void executed() override;
     74        void exit() override;
    7575
    7676        void resetTerminalMode();
  • code/branches/cpp11_v2/src/libraries/core/command/Shell.h

    r10769 r10817  
    151151
    152152            // DevModeListener
    153             void devModeChanged(bool value);
     153            void devModeChanged(bool value) override;
    154154
    155155            void addToHistory(const std::string& command);
     
    157157            void clearInput();
    158158            // BaseWriter
    159             virtual void printLine(const std::string& line, OutputLevel level);
     159            virtual void printLine(const std::string& line, OutputLevel level) override;
    160160
    161161            void configureInputBuffer();
  • code/branches/cpp11_v2/src/libraries/core/commandline/CommandLineIncludes.h

    r10535 r10817  
    6464            ~StaticallyInitializedCommandLineArgument() { delete argument_; }
    6565
    66             virtual void load()
     66            virtual void load() override
    6767                { CommandLineParser::addArgument(this->argument_); }
    6868
    69             virtual void unload()
     69            virtual void unload() override
    7070                { CommandLineParser::removeArgument(this->argument_); }
    7171
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFile.cc

    r10768 r10817  
    3838#include <iterator>
    3939#include <algorithm>
     40#include <fstream>
    4041
    4142#include "util/Convert.h"
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryComment.h

    r9559 r10817  
    5656            inline virtual ~ConfigFileEntryComment() {}
    5757
    58             inline virtual const std::string& getName() const
     58            inline virtual const std::string& getName() const override
    5959                { return this->comment_; }
    6060
    61             inline virtual void setComment(const std::string& comment)
     61            inline virtual void setComment(const std::string& comment) override
    6262                { this->comment_ = comment; }
    6363
    64             inline virtual void setValue(const std::string& value)
     64            inline virtual void setValue(const std::string& value) override
    6565                {}
    66             inline virtual const std::string& getValue() const
     66            inline virtual const std::string& getValue() const override
    6767                { return BLANKSTRING; }
    6868
    69             inline void setString(bool bString)
     69            inline void setString(bool bString) override
    7070                {}
    7171
    72             inline virtual const std::string& getFileEntry() const
     72            inline virtual const std::string& getFileEntry() const override
    7373                { return this->comment_; }
    7474
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryValue.h

    r9684 r10817  
    6969            inline virtual ~ConfigFileEntryValue() {}
    7070
    71             inline virtual const std::string& getName() const
     71            inline virtual const std::string& getName() const override
    7272                { return this->name_; }
    7373
    74             inline virtual void setComment(const std::string& comment)
     74            inline virtual void setComment(const std::string& comment) override
    7575                { this->additionalComment_ = comment; this->update(); }
    7676
    77             inline virtual void setValue(const std::string& value)
     77            inline virtual void setValue(const std::string& value) override
    7878                { this->value_ = value; this->update(); }
    79             inline virtual const std::string& getValue() const
     79            inline virtual const std::string& getValue() const override
    8080                { return this->value_; }
    8181
    82             inline void virtual setString(bool bString)
     82            inline void virtual setString(bool bString) override
    8383                { this->bString_ = bString; this->update(); }
    8484
    85             inline virtual const std::string& getFileEntry() const
     85            inline virtual const std::string& getFileEntry() const override
    8686                { return this->fileEntry_; }
    8787
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryVectorValue.h

    r9559 r10817  
    6767            inline ~ConfigFileEntryVectorValue() {}
    6868
    69             inline unsigned int getIndex() const
     69            inline unsigned int getIndex() const override
    7070                { return this->index_; }
    7171
    7272            /// Returns the "key" of the value (the name of the vector plus the index of the element)
    73             inline const std::string& getKeyString() const
     73            inline const std::string& getKeyString() const override
    7474                { return this->keyString_; }
    7575
    7676        private:
    77             void update();
     77            void update() override;
    7878
    7979            unsigned int index_;        ///< The index of the element in the vector
  • code/branches/cpp11_v2/src/libraries/core/config/ConfigValueContainer.h

    r10765 r10817  
    6868            inline ConfigValueCallback(void (T::*function) (void)) : function_(function) {}
    6969            inline virtual ~ConfigValueCallback() {}
    70             inline virtual void call(void* object)
     70            inline virtual void call(void* object) override
    7171            {
    7272                if (!IdentifierManager::getInstance().isCreatingHierarchy())
  • code/branches/cpp11_v2/src/libraries/core/input/HalfAxis.h

    r10768 r10817  
    5656        using Button::execute;
    5757        bool execute();
    58         bool addParamCommand(ParamCommand* command);
    59         void clear();
     58        bool addParamCommand(ParamCommand* command) override;
     59        void clear() override;
    6060        void reset();
    6161
  • code/branches/cpp11_v2/src/libraries/core/input/InputBuffer.h

    r9667 r10817  
    6666        { }
    6767        virtual ~InputBufferListenerTuple() { }
    68         void callFunction()
     68        void callFunction() override
    6969        {
    7070            (listener_->*function_)();
     
    165165                { if (this->cursor_ > 0) { --this->cursor_; } }
    166166
    167             void buttonPressed(const KeyEvent& evt);
     167            void buttonPressed(const KeyEvent& evt) override;
    168168
    169169        private:
    170170            bool charIsAllowed(const char& input);
    171171
    172             void buttonHeld   (const KeyEvent& evt);
     172            void buttonHeld   (const KeyEvent& evt) override;
    173173            void processKey   (const KeyEvent& evt);
    174174
    175             void keyboardUpdated(float dt);
     175            void keyboardUpdated(float dt) override;
    176176
    177177            std::string buffer_;
  • code/branches/cpp11_v2/src/libraries/core/input/InputCommands.h

    r10768 r10817  
    7676    {
    7777    public:
    78         bool execute(float abs = 1.0f, float rel = 1.0f);
    79         CommandEvaluation* getEvaluation();
    80         virtual SimpleCommand* clone() { return new SimpleCommand(*this); }
     78        bool execute(float abs = 1.0f, float rel = 1.0f) override;
     79        CommandEvaluation* getEvaluation() override;
     80        virtual SimpleCommand* clone() override { return new SimpleCommand(*this); }
    8181
    8282        CommandEvaluation evaluation_;
     
    104104    public:
    105105        ParamCommand() : scale_(1.0f), paramCommand_(nullptr) { }
    106         bool execute(float abs = 1.0f, float rel = 1.0f);
    107         CommandEvaluation* getEvaluation();
    108         virtual ParamCommand* clone() { return new ParamCommand(*this); }
     106        bool execute(float abs = 1.0f, float rel = 1.0f) override;
     107        CommandEvaluation* getEvaluation() override;
     108        virtual ParamCommand* clone() override { return new ParamCommand(*this); }
    109109
    110110        float scale_;
  • code/branches/cpp11_v2/src/libraries/core/input/InputDevice.h

    r8858 r10817  
    153153
    154154        //! Captures OIS events (which then get distributed to the derived class) and creates the button held events
    155         void update(const Clock& time)
     155        void update(const Clock& time) override
    156156        {
    157157            oisDevice_->capture();
     
    160160            for (unsigned int iB = 0; iB < pressedButtons_.size(); ++iB)
    161161                for (unsigned int iS = 0; iS < inputStates_.size(); ++iS)
    162                     inputStates_[iS]->buttonEvent<ButtonEvent::THold, typename Traits::ButtonTypeParam>(
     162                    inputStates_[iS]->template buttonEvent<ButtonEvent::THold, typename Traits::ButtonTypeParam>(
    163163                        this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(pressedButtons_[iB]));
    164164
     
    171171
    172172        //! Clears the list of pressed buttons and calls the derived class's method
    173         void clearBuffers()
     173        void clearBuffers() override
    174174        {
    175175            pressedButtons_.clear();
     
    180180        OISDeviceClass* getOISDevice()   { return this->oisDevice_; }
    181181        // Returns the name of the derived class as string
    182         std::string getClassName() const { return DeviceClass::getClassNameImpl(); }
     182        std::string getClassName() const override { return DeviceClass::getClassNameImpl(); }
    183183
    184184    protected:
     
    197197            // Call states
    198198            for (unsigned int i = 0; i < inputStates_.size(); ++i)
    199                 inputStates_[i]->buttonEvent<ButtonEvent::TPress, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));
     199                inputStates_[i]->template buttonEvent<ButtonEvent::TPress, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));
    200200        }
    201201
     
    219219            // Call states
    220220            for (unsigned int i = 0; i < inputStates_.size(); ++i)
    221                 inputStates_[i]->buttonEvent<ButtonEvent::TRelease, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));
     221                inputStates_[i]->template buttonEvent<ButtonEvent::TRelease, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));
    222222        }
    223223
  • code/branches/cpp11_v2/src/libraries/core/input/InputManager.h

    r10775 r10817  
    208208
    209209        // From WindowEventListener
    210         void windowFocusChanged(bool bFocus);
     210        void windowFocusChanged(bool bFocus) override;
    211211
    212212    private: // variables
  • code/branches/cpp11_v2/src/libraries/core/input/InputState.h

    r10775 r10817  
    157157        ~InputState() { }
    158158
    159         void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList);
     159        void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override;
    160160
    161161        //! Sets the priority (only to be used by the InputManager!)
  • code/branches/cpp11_v2/src/libraries/core/input/JoyStick.h

    r9667 r10817  
    7777
    7878    private:
    79         void calibrationStarted();
    80         void calibrationStopped();
     79        void calibrationStarted() override;
     80        void calibrationStopped() override;
    8181        void evaluateCalibration();
    8282
     
    8686
    8787        //! OIS event handler
    88         bool buttonPressed (const OIS::JoyStickEvent &arg, int button)
     88        bool buttonPressed (const OIS::JoyStickEvent &arg, int button) override
    8989        {
    9090            super::buttonPressed(static_cast<JoyStickButtonCode::ByEnum>(button));
     
    9393
    9494        //! OIS event handler
    95         bool buttonReleased(const OIS::JoyStickEvent &arg, int button)
     95        bool buttonReleased(const OIS::JoyStickEvent &arg, int button) override
    9696        {
    9797            super::buttonReleased(static_cast<JoyStickButtonCode::ByEnum>(button));
     
    9999        }
    100100
    101         bool axisMoved     (const OIS::JoyStickEvent &arg, int axis);
    102         bool sliderMoved   (const OIS::JoyStickEvent &arg, int id);
    103         bool povMoved      (const OIS::JoyStickEvent &arg, int id);
     101        bool axisMoved     (const OIS::JoyStickEvent &arg, int axis) override;
     102        bool sliderMoved   (const OIS::JoyStickEvent &arg, int id) override;
     103        bool povMoved      (const OIS::JoyStickEvent &arg, int id) override;
    104104        //! OIS event handler (don't remove that because of OIS version issues!)
    105         bool vector3Moved  (const OIS::JoyStickEvent &arg, int id) { return true; }
     105        bool vector3Moved  (const OIS::JoyStickEvent &arg, int id) override { return true; }
    106106
    107107        //! Returns the class name as string
  • code/branches/cpp11_v2/src/libraries/core/input/KeyBinder.h

    r10771 r10817  
    8484        void compilePointerLists();
    8585        // from JoyStickQuantityListener interface
    86         virtual void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList);
    87 
    88         void allDevicesUpdated(float dt);
    89         void mouseUpdated(float dt);
    90         void joyStickUpdated(unsigned int joyStick, float dt);
     86        virtual void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override;
     87
     88        void allDevicesUpdated(float dt) override;
     89        void mouseUpdated(float dt) override;
     90        void joyStickUpdated(unsigned int joyStick, float dt) override;
    9191        // internal
    9292        void tickHalfAxis(HalfAxis& halfAxis);
    9393
    94         void buttonPressed (const KeyEvent& evt);
    95         void buttonReleased(const KeyEvent& evt);
    96         void buttonHeld    (const KeyEvent& evt);
    97 
    98         void buttonPressed (MouseButtonCode::ByEnum button);
    99         void buttonReleased(MouseButtonCode::ByEnum button);
    100         void buttonHeld    (MouseButtonCode::ByEnum button);
    101         void mouseMoved    (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize);
    102         void mouseScrolled (int abs, int rel);
    103 
    104         void buttonPressed (unsigned int device, JoyStickButtonCode::ByEnum button);
    105         void buttonReleased(unsigned int device, JoyStickButtonCode::ByEnum button);
    106         void buttonHeld    (unsigned int device, JoyStickButtonCode::ByEnum button);
    107         void axisMoved     (unsigned int device, unsigned int axis, float value);
     94        void buttonPressed (const KeyEvent& evt) override;
     95        void buttonReleased(const KeyEvent& evt) override;
     96        void buttonHeld    (const KeyEvent& evt) override;
     97
     98        void buttonPressed (MouseButtonCode::ByEnum button) override;
     99        void buttonReleased(MouseButtonCode::ByEnum button) override;
     100        void buttonHeld    (MouseButtonCode::ByEnum button) override;
     101        void mouseMoved    (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) override;
     102        void mouseScrolled (int abs, int rel) override;
     103
     104        void buttonPressed (unsigned int device, JoyStickButtonCode::ByEnum button) override;
     105        void buttonReleased(unsigned int device, JoyStickButtonCode::ByEnum button) override;
     106        void buttonHeld    (unsigned int device, JoyStickButtonCode::ByEnum button) override;
     107        void axisMoved     (unsigned int device, unsigned int axis, float value) override;
    108108
    109109    protected: // variables
  • code/branches/cpp11_v2/src/libraries/core/input/KeyDetector.h

    r8729 r10817  
    5151
    5252        void callback(const std::string& name);
    53         void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList);
     53        void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override;
    5454        void assignCommands();
    5555
  • code/branches/cpp11_v2/src/libraries/core/input/Keyboard.h

    r8729 r10817  
    7575        }
    7676
    77         bool keyPressed(const OIS::KeyEvent& arg);
    78         bool keyReleased(const OIS::KeyEvent& arg);
     77        bool keyPressed(const OIS::KeyEvent& arg) override;
     78        bool keyReleased(const OIS::KeyEvent& arg) override;
    7979
    8080        //! Returns the class name as string
  • code/branches/cpp11_v2/src/libraries/core/input/Mouse.h

    r7809 r10817  
    7474    private:
    7575        //! OIS event handler
    76         bool mousePressed(const OIS::MouseEvent &arg, OIS::MouseButtonID id)
     76        bool mousePressed(const OIS::MouseEvent &arg, OIS::MouseButtonID id) override
    7777        {
    7878            super::buttonPressed(static_cast<MouseButtonCode::ByEnum>(id));
     
    8181
    8282        //! OIS event handler
    83         bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id)
     83        bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id) override
    8484        {
    8585            super::buttonReleased(static_cast<MouseButtonCode::ByEnum>(id));
     
    8787        }
    8888
    89         bool mouseMoved(const OIS::MouseEvent &arg);
     89        bool mouseMoved(const OIS::MouseEvent &arg) override;
    9090
    91         void windowResized(unsigned int newWidth, unsigned int newHeight);
     91        void windowResized(unsigned int newWidth, unsigned int newHeight) override;
    9292
    9393        // Returns the class name as string
  • code/branches/cpp11_v2/src/libraries/core/module/StaticInitializationHandlerIncludes.h

    r10535 r10817  
    5353            ~StaticallyInitializedStaticInitializationHandler() { delete handler_; }
    5454
    55             virtual void load();
    56             virtual void unload();
     55            virtual void load() override;
     56            virtual void unload() override;
    5757
    5858            inline StaticInitializationHandler& getHandler()
  • code/branches/cpp11_v2/src/libraries/core/object/DestroyLaterManager.h

    r10769 r10817  
    4545            virtual ~DestroyLaterManager();
    4646
    47             virtual void preUpdate(const Clock& time) { /*no action*/ }
    48             virtual void postUpdate(const Clock& time);
     47            virtual void preUpdate(const Clock& time) override { /*no action*/ }
     48            virtual void postUpdate(const Clock& time) override;
    4949
    5050            void retain(Destroyable* instance)
  • code/branches/cpp11_v2/src/libraries/core/object/IteratorBase.h

    r10774 r10817  
    175175                @param object The object to compare with
    176176            */
    177             virtual void removedElement(ObjectListBaseElement* element)
     177            virtual void removedElement(ObjectListBaseElement* element) override
    178178            {
    179179                if (this->element_ == element)
  • code/branches/cpp11_v2/src/libraries/core/object/ObjectListBase.h

    r10768 r10817  
    8282            ObjectListElement(T* object) : ObjectListBaseElement(static_cast<Listable*>(object)), object_(object) {}
    8383
    84             virtual void changeContext(Context* oldContext, Context* newContext)
     84            virtual void changeContext(Context* oldContext, Context* newContext) override
    8585            {
    8686                // add object to new context, but only if this element belongs exactly to the old context (and not to a sub-context to avoid re-adding objects
  • code/branches/cpp11_v2/src/libraries/core/object/WeakPtr.h

    r10770 r10817  
    230230        private:
    231231            /// Will be called by Destroyable::~Destroyable() if the stored object is deleted. Resets the wrapped pointer and executes the callback.
    232             inline void objectDeleted()
     232            inline void objectDeleted() override
    233233            {
    234234                this->base_ = nullptr;
  • code/branches/cpp11_v2/src/libraries/core/singleton/ScopedSingletonIncludes.h

    r10765 r10817  
    8787            ~StaticallyInitializedScopedSingletonWrapper() { delete wrapper_; }
    8888
    89             virtual void load();
    90             virtual void unload();
     89            virtual void load() override;
     90            virtual void unload() override;
    9191
    9292            inline ScopedSingletonWrapper& getWrapper()
  • code/branches/cpp11_v2/src/libraries/core/singleton/ScopedSingletonWrapper.h

    r10765 r10817  
    102102
    103103        //! Called if the Scope of the Singleton gets active (creates the instance)
    104         void activated()
     104        void activated() override
    105105        {
    106106            assert(singletonPtr_ == nullptr);
     
    109109
    110110        //! Called if the Scope of this Singleton gets deactivated (destroys the instance)
    111         void deactivated()
     111        void deactivated() override
    112112        {
    113113            assert(singletonPtr_ != nullptr);
     
    157157
    158158        //! Called if the Scope of the Singleton gets active (creates the instance)
    159         void activated()
     159        void activated() override
    160160        {
    161161            assert(singletonPtr_ == nullptr);
     
    169169
    170170        //! Called if the Scope of this Singleton gets deactivated (destroys the instance)
    171         void deactivated()
     171        void deactivated() override
    172172        {
    173173            if (singletonPtr_ != nullptr)
Note: See TracChangeset for help on using the changeset viewer.