diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-07 13:33:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-07 13:00:53 +0000 |
commit | 0a3eaf9f67f5e66ca0ae0c38cc4d85e07795b9f4 (patch) | |
tree | eade6a8506dd5d09ad336d8b168496ed189aff85 /sdext/source | |
parent | 19dc288ce4a5ad7a386ff2b4208b7284d8731067 (diff) |
loplugin:unnecessaryvirtual in sd..sdext
Change-Id: Id0bc82210fadc138b55d1abe4e06b1d2ed564df3
Reviewed-on: https://gerrit.libreoffice.org/30659
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/pdfimport/tree/pdfiprocessor.hxx | 3 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterSprite.hxx | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.hxx b/sdext/source/pdfimport/tree/pdfiprocessor.hxx index bcce1006232d..1588b057d9c3 100644 --- a/sdext/source/pdfimport/tree/pdfiprocessor.hxx +++ b/sdext/source/pdfimport/tree/pdfiprocessor.hxx @@ -199,7 +199,7 @@ namespace pdfi bool m_bHaveTextOnDocLevel; }; - class CharGlyph + class CharGlyph final { public: CharGlyph(Element* pCurElement, const GraphicsContext& rCurrentContext, @@ -207,7 +207,6 @@ namespace pdfi : m_pCurElement(pCurElement), m_rCurrentContext(rCurrentContext), m_Width(width), m_PrevSpaceWidth(prevSpaceWidth), m_rGlyphs(rGlyphs) {}; - virtual ~CharGlyph(){}; OUString& getGlyph(){ return m_rGlyphs; } double getWidth(){ return m_Width; } double getPrevSpaceWidth(){ return m_PrevSpaceWidth; } diff --git a/sdext/source/presenter/PresenterSprite.hxx b/sdext/source/presenter/PresenterSprite.hxx index c73400fc7476..a2383e0de9f8 100644 --- a/sdext/source/presenter/PresenterSprite.hxx +++ b/sdext/source/presenter/PresenterSprite.hxx @@ -32,11 +32,11 @@ namespace sdext { namespace presenter { to show the sprite when its size is not yet defined (results in a crash) and hiding a sprite before disposing it (results in zombie sprites.) */ -class PresenterSprite +class PresenterSprite final { public: PresenterSprite(); - virtual ~PresenterSprite(); + ~PresenterSprite(); PresenterSprite(const PresenterSprite&) = delete; PresenterSprite& operator=(const PresenterSprite&) = delete; |