Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2015, 10:20:29 PM (9 years ago)
Author:
landauf
Message:

always use 'virtual' in the declaration of virtual functions even if they are inherited

Location:
code/branches/cpp11_v2/src/orxonox/infos
Files:
2 edited

Legend:

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

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

    r10817 r10845  
    4545            void setConfigValues();
    4646
    47             bool isInitialized() const override;
    48             float getPing() const override;
    49             float getPacketLossRatio() const override;
     47            virtual bool isInitialized() const override;
     48            virtual float getPing() const override;
     49            virtual float getPacketLossRatio() const override;
    5050
    5151            void setClientID(unsigned int clientID);
Note: See TracChangeset for help on using the changeset viewer.