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)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/modules/invader/InvaderShip.h

    r10733 r10817  
    4747            InvaderShip(Context* context);
    4848
    49             virtual void tick(float dt);
     49            virtual void tick(float dt) override;
    5050
    5151            // overwrite for 2d movement
    52             virtual void moveFrontBack(const Vector2& value);
    53             virtual void moveRightLeft(const Vector2& value);
     52            virtual void moveFrontBack(const Vector2& value) override;
     53            virtual void moveRightLeft(const Vector2& value) override;
    5454
    5555            // Starts or stops fireing
    56             virtual void boost(bool bBoost);
     56            virtual void boost(bool bBoost) override;
    5757
    5858            //no rotation!
    59             virtual void rotateYaw(const Vector2& value){};
    60             virtual void rotatePitch(const Vector2& value){};
     59            virtual void rotateYaw(const Vector2& value) override{};
     60            virtual void rotatePitch(const Vector2& value) override{};
    6161            //return to main menu if game has ended.
    62             virtual void rotateRoll(const Vector2& value);
     62            virtual void rotateRoll(const Vector2& value) override;
    6363
    6464            virtual void updateLevel();
     
    6767
    6868        protected:
    69             virtual void death();
     69            virtual void death() override;
    7070        private:
    7171            Invader* getGame();
Note: See TracChangeset for help on using the changeset viewer.