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/libraries/tools
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/tools/BulletDebugDrawer.h

    r10733 r10817  
    2323            BulletDebugDrawer(Ogre::SceneManager* sceneManager);
    2424            ~BulletDebugDrawer();
    25             virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& color);
     25            virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& color) override;
    2626//            virtual void drawTriangle(const btVector3& v0, const btVector3& v1, const btVector3& v2, const btVector3& color, btScalar);
    27             virtual void drawSphere (const btVector3& p, btScalar radius, const btVector3& color);
    28             virtual void drawSphere(btScalar radius, const btTransform& transform, const btVector3& color);
    29             virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btVector3& color);
    30             virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btTransform& trans, const btVector3& color);
    31             virtual void drawCylinder(btScalar radius, btScalar halfHeight, int upAxis, const btTransform& transform, const btVector3& color);
    32             virtual void drawCone(btScalar radius, btScalar height, int upAxis, const btTransform& transform, const btVector3& color);
     27            virtual void drawSphere (const btVector3& p, btScalar radius, const btVector3& color) override;
     28            virtual void drawSphere(btScalar radius, const btTransform& transform, const btVector3& color) override;
     29            virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btVector3& color) override;
     30            virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btTransform& trans, const btVector3& color) override;
     31            virtual void drawCylinder(btScalar radius, btScalar halfHeight, int upAxis, const btTransform& transform, const btVector3& color) override;
     32            virtual void drawCone(btScalar radius, btScalar height, int upAxis, const btTransform& transform, const btVector3& color) override;
    3333//            virtual void drawPlane(const btVector3& planeNormal, btScalar planeConst, const btTransform& transform, const btVector3& color);
    3434
    35             virtual void drawContactPoint(const btVector3& PointOnB, const btVector3& normalOnB, btScalar distance, int lifeTime, const btVector3& color);
     35            virtual void drawContactPoint(const btVector3& PointOnB, const btVector3& normalOnB, btScalar distance, int lifeTime, const btVector3& color) override;
    3636
    37             virtual void reportErrorWarning(const char* warningString);
    38             virtual void draw3dText(const btVector3& location, const char* textString);
     37            virtual void reportErrorWarning(const char* warningString) override;
     38            virtual void draw3dText(const btVector3& location, const char* textString) override;
    3939
    40             virtual void setDebugMode(int debugMode);
    41             virtual int getDebugMode() const;
     40            virtual void setDebugMode(int debugMode) override;
     41            virtual int getDebugMode() const override;
    4242
    4343            void configure(bool bFill, float fillAlpha);
    4444
    4545        protected:
    46             bool frameStarted(const Ogre::FrameEvent& evt);
    47             bool frameEnded(const Ogre::FrameEvent& evt);
     46            bool frameStarted(const Ogre::FrameEvent& evt) override;
     47            bool frameEnded(const Ogre::FrameEvent& evt) override;
    4848
    4949        private:
  • code/branches/cpp11_v2/src/libraries/tools/DynamicLines.h

    r5781 r10817  
    8484    protected:
    8585        /// Implementation DynamicRenderable, creates a simple vertex-only decl
    86         virtual void createVertexDeclaration();
     86        virtual void createVertexDeclaration() override;
    8787        /// Implementation DynamicRenderable, pushes point list out to hardware memory
    88         virtual void fillHardwareBuffers();
     88        virtual void fillHardwareBuffers() override;
    8989
    9090    private:
  • code/branches/cpp11_v2/src/libraries/tools/DynamicRenderable.h

    r5781 r10817  
    6161
    6262        /// Implementation of SimpleRenderable
    63         virtual Real getBoundingRadius(void) const;
     63        virtual Real getBoundingRadius(void) const override;
    6464        /// Implementation of SimpleRenderable
    65         virtual Real getSquaredViewDepth(const Camera* cam) const;
     65        virtual Real getSquaredViewDepth(const Camera* cam) const override;
    6666
    6767    protected:
  • code/branches/cpp11_v2/src/libraries/tools/ParticleInterface.h

    r10624 r10817  
    7676
    7777        protected:
    78             virtual void changedTimeFactor(float factor_new, float factor_old);
     78            virtual void changedTimeFactor(float factor_new, float factor_old) override;
    7979
    8080        private:
  • code/branches/cpp11_v2/src/libraries/tools/ResourceCollection.h

    r9667 r10817  
    4444        virtual ~ResourceCollection();
    4545
    46         virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     46        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
    4747
    4848        void setResourceGroup(const std::string& resourceGroup);
  • code/branches/cpp11_v2/src/libraries/tools/ResourceLocation.h

    r9667 r10817  
    4646        virtual ~ResourceLocation();
    4747
    48         virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
     48        virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
    4949
    5050        void setPath(const std::string& path) { path_ = path; }
  • code/branches/cpp11_v2/src/libraries/tools/Shader.h

    r10768 r10817  
    8787                { return this->scenemanager_; }
    8888
    89             virtual void cameraChanged(Ogre::Viewport* viewport, Ogre::Camera* oldCamera);
     89            virtual void cameraChanged(Ogre::Viewport* viewport, Ogre::Camera* oldCamera) override;
    9090
    9191            void setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, float value);
    9292            void setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, int value);
    9393
    94             virtual void notifyMaterialRender(Ogre::uint32 pass_id, Ogre::MaterialPtr& materialPtr);
     94            virtual void notifyMaterialRender(Ogre::uint32 pass_id, Ogre::MaterialPtr& materialPtr) override;
    9595
    9696        private:
  • code/branches/cpp11_v2/src/libraries/tools/Timer.h

    r9667 r10817  
    175175
    176176        protected:
    177             virtual float getTimeFactor();
     177            virtual float getTimeFactor() override;
    178178    };
    179179}
Note: See TracChangeset for help on using the changeset viewer.