diff --git a/components/myguiplatform/myguitexture.hpp b/components/myguiplatform/myguitexture.hpp index 4f7ff8f116..02079798d3 100644 --- a/components/myguiplatform/myguitexture.hpp +++ b/components/myguiplatform/myguitexture.hpp @@ -20,7 +20,8 @@ namespace Resource namespace osgMyGUI { - class OSGTexture : public MyGUI::ITexture { + class OSGTexture final : public MyGUI::ITexture + { std::string mName; Resource::ImageManager* mImageManager; @@ -37,7 +38,7 @@ namespace osgMyGUI public: OSGTexture(const std::string &name, Resource::ImageManager* imageManager); OSGTexture(osg::Texture2D* texture, osg::StateSet* injectState = nullptr); - virtual ~OSGTexture(); + ~OSGTexture() override; osg::StateSet* getInjectState() { return mInjectState; }