Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2015, 11:40:28 AM (10 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/sound
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/orxonox/sound/AmbientSound.h

    r9939 r10817  
    5050        AmbientSound();
    5151
    52         void play();
    53         bool stop();
    54         void pause();
     52        void play() override;
     53        bool stop() override;
     54        void pause() override;
    5555
    5656        bool setAmbientSource(const std::string& source);
     
    6666
    6767    private:
    68         void preDestroy();
    69         float getRealVolume();
    70         bool moodChanged(const std::string& mood);
     68        void preDestroy() override;
     69        float getRealVolume() override;
     70        bool moodChanged(const std::string& mood) override;
    7171        inline void ambientSourceChanged()
    7272            { this->setAmbientSource(this->ambientSource_); }
  • code/branches/cpp11_v2/src/orxonox/sound/SoundManager.h

    r10771 r10817  
    6868        ~SoundManager();
    6969
    70         void preUpdate(const Clock& time);
    71         void postUpdate(const Clock& time) { /*no action*/ }
     70        void preUpdate(const Clock& time) override;
     71        void postUpdate(const Clock& time) override { /*no action*/ }
    7272        void setConfigValues();
    7373
  • code/branches/cpp11_v2/src/orxonox/sound/WorldAmbientSound.h

    r9939 r10817  
    5050            virtual ~WorldAmbientSound();
    5151
    52             void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    53             void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
     52            void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
     53            void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override;
    5454
    55             virtual void changedActivity();
     55            virtual void changedActivity() override;
    5656
    5757            void play();
  • code/branches/cpp11_v2/src/orxonox/sound/WorldSound.h

    r9667 r10817  
    4747        WorldSound(Context* context);
    4848
    49         void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    50         void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
    51         void changedActivity();
     49        void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
     50        void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override;
     51        void changedActivity() override;
    5252
    53         void tick(float dt);
     53        void tick(float dt) override;
    5454
    5555    protected:
     
    5858    private:
    5959        void registerVariables();
    60         void initialiseSource();
    61         float getRealVolume();
     60        void initialiseSource() override;
     61        float getRealVolume() override;
    6262    };
    6363}
Note: See TracChangeset for help on using the changeset viewer.