Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2015, 11:40:28 AM (8 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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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_;
Note: See TracChangeset for help on using the changeset viewer.