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/orxonox/worldentities/pawns/Pawn.h

    r10768 r10817  
    6161            virtual ~Pawn();
    6262
    63             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    64             virtual void tick(float dt);
     63            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
     64            virtual void tick(float dt) override;
    6565
    6666            inline bool isAlive() const
     
    143143            virtual void kill();
    144144
    145             virtual void fired(unsigned int firemode);
    146             virtual void reload();
     145            virtual void fired(unsigned int firemode) override;
     146            virtual void reload() override;
    147147            virtual void postSpawn();
    148148
     
    179179
    180180
    181             virtual void startLocalHumanControl();
     181            virtual void startLocalHumanControl() override;
    182182
    183183            void setAimPosition( Vector3 position )
     
    186186                { return this->aimPosition_; }
    187187
    188             virtual const Vector3& getCarrierPosition(void) const
     188            virtual const Vector3& getCarrierPosition(void) const override
    189189                { return this->getWorldPosition(); };
    190190
    191             virtual void changedVisibility();
     191            virtual void changedVisibility() override;
    192192
    193193            void setExplosionSound(const std::string& engineSound);
     
    195195
    196196        protected:
    197             virtual void preDestroy();
    198 
    199             virtual void setPlayer(PlayerInfo* player);
    200             virtual void removePlayer();
     197            virtual void preDestroy() override;
     198
     199            virtual void setPlayer(PlayerInfo* player) override;
     200            virtual void removePlayer() override;
    201201
    202202            virtual void death();
     
    212212            bool bAlive_;
    213213
    214             virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const
     214            virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const override
    215215                { return new std::vector<PickupCarrier*>(); }
    216             virtual PickupCarrier* getCarrierParent(void) const
     216            virtual PickupCarrier* getCarrierParent(void) const override
    217217                { return nullptr; }
    218218
Note: See TracChangeset for help on using the changeset viewer.