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/orxonox/infos
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/orxonox/infos/Bot.h

    r9667 r10817  
    4545            void setConfigValues();
    4646
    47             inline bool isInitialized() const
     47            inline bool isInitialized() const override
    4848                { return true; }
    49             inline float getPing() const
     49            inline float getPing() const override
    5050                { return 0; }
    51             inline float getPacketLossRatio() const
     51            inline float getPacketLossRatio() const override
    5252                { return 0; }
    5353
  • code/branches/cpp11_v2/src/orxonox/infos/HumanPlayer.h

    r10624 r10817  
    4545            void setConfigValues();
    4646
    47             bool isInitialized() const;
    48             float getPing() const;
    49             float getPacketLossRatio() const;
     47            bool isInitialized() const override;
     48            float getPing() const override;
     49            float getPacketLossRatio() const override;
    5050
    5151            void setClientID(unsigned int clientID);
    5252
    53             virtual void switchGametype(Gametype* gametype);
     53            virtual void switchGametype(Gametype* gametype) override;
    5454
    5555            inline void setHumanHUDTemplate(const std::string& name)
  • code/branches/cpp11_v2/src/orxonox/infos/PlayerInfo.h

    r10769 r10817  
    4444            virtual ~PlayerInfo();
    4545
    46             virtual void changedName();
     46            virtual void changedName() override;
    4747            virtual void switchGametype(Gametype* gametype);
    4848
Note: See TracChangeset for help on using the changeset viewer.