diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-07 09:31:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-07 10:11:33 +0000 |
commit | 0f96b3f33f98ecd56f0fe55a65315d6762ff978a (patch) | |
tree | fa4f2b9dd0b7e8e9f30d6fe18c86a3e89a66352f /include | |
parent | 41ea741cd843776cd600d33b28a7f0e35345e0d0 (diff) |
loplugin:unnecessaryvirtual in test..vbahelper
Change-Id: I0e110af6eab798e11f96d0f7d282d59440d91965
Reviewed-on: https://gerrit.libreoffice.org/30649
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/test/mtfxmldump.hxx | 4 | ||||
-rw-r--r-- | include/test/primitive2dxmldump.hxx | 4 | ||||
-rw-r--r-- | include/test/xmlwriter.hxx | 4 | ||||
-rw-r--r-- | include/toolkit/awt/scrollabledialog.hxx | 2 | ||||
-rw-r--r-- | include/tools/simplerm.hxx | 4 | ||||
-rw-r--r-- | include/unoidl/unoidl.hxx | 8 | ||||
-rw-r--r-- | include/vbahelper/vbacollectionimpl.hxx | 2 |
7 files changed, 14 insertions, 14 deletions
diff --git a/include/test/mtfxmldump.hxx b/include/test/mtfxmldump.hxx index 6fc24e61992e..38087d6f8f3a 100644 --- a/include/test/mtfxmldump.hxx +++ b/include/test/mtfxmldump.hxx @@ -21,7 +21,7 @@ class XmlWriter; enum class MetaActionType; -class OOO_DLLPUBLIC_TEST MetafileXmlDump +class OOO_DLLPUBLIC_TEST MetafileXmlDump final { o3tl::enumarray<MetaActionType, bool> maFilter; @@ -29,7 +29,7 @@ class OOO_DLLPUBLIC_TEST MetafileXmlDump public: MetafileXmlDump(); - virtual ~MetafileXmlDump(); + ~MetafileXmlDump(); void filterActionType(const MetaActionType nActionType, bool bShouldFilter); void filterAllActionTypes(); diff --git a/include/test/primitive2dxmldump.hxx b/include/test/primitive2dxmldump.hxx index b885234bdc67..80ef271ee720 100644 --- a/include/test/primitive2dxmldump.hxx +++ b/include/test/primitive2dxmldump.hxx @@ -19,7 +19,7 @@ #include <vector> -class OOO_DLLPUBLIC_TEST Primitive2dXmlDump +class OOO_DLLPUBLIC_TEST Primitive2dXmlDump final { private: std::vector<bool> maFilter; @@ -27,7 +27,7 @@ private: public: Primitive2dXmlDump(); - virtual ~Primitive2dXmlDump(); + ~Primitive2dXmlDump(); /** The actual result that will be used for testing. diff --git a/include/test/xmlwriter.hxx b/include/test/xmlwriter.hxx index 836a12384795..96a5314d8d48 100644 --- a/include/test/xmlwriter.hxx +++ b/include/test/xmlwriter.hxx @@ -18,7 +18,7 @@ class SvStream; -class OOO_DLLPUBLIC_TEST XmlWriter +class OOO_DLLPUBLIC_TEST XmlWriter final { private: SvStream* mpStream; @@ -26,7 +26,7 @@ private: public: XmlWriter(SvStream* pStream); - virtual ~XmlWriter(); + ~XmlWriter(); void startDocument(); void endDocument(); diff --git a/include/toolkit/awt/scrollabledialog.hxx b/include/toolkit/awt/scrollabledialog.hxx index 1003a536e1cb..c414c8f3966e 100644 --- a/include/toolkit/awt/scrollabledialog.hxx +++ b/include/toolkit/awt/scrollabledialog.hxx @@ -63,7 +63,7 @@ namespace toolkit void setScrollVisibility( ScrollBarVisibility rState ); DECL_LINK( ScrollBarHdl, ScrollBar*, void ); - virtual void ResetScrollBars(); + void ResetScrollBars(); // Window virtual void Resize() override; }; diff --git a/include/tools/simplerm.hxx b/include/tools/simplerm.hxx index 7560f4bc64c7..b670dab21a3d 100644 --- a/include/tools/simplerm.hxx +++ b/include/tools/simplerm.hxx @@ -30,7 +30,7 @@ class InternalResMgr; -class TOOLS_DLLPUBLIC SimpleResMgr +class TOOLS_DLLPUBLIC SimpleResMgr final { protected: osl::Mutex m_aAccessSafety; @@ -48,7 +48,7 @@ public: SimpleResMgr( const sal_Char* pPrefixName, const LanguageTag& rLocale); - virtual ~SimpleResMgr(); + ~SimpleResMgr(); static SimpleResMgr* Create( const sal_Char* pPrefixName, const LanguageTag& rLocale );// only in VCL diff --git a/include/unoidl/unoidl.hxx b/include/unoidl/unoidl.hxx index 4ab5d31e0047..7d9af0a0156c 100644 --- a/include/unoidl/unoidl.hxx +++ b/include/unoidl/unoidl.hxx @@ -24,14 +24,14 @@ namespace unoidl { -class LO_DLLPUBLIC_UNOIDL NoSuchFileException { +class LO_DLLPUBLIC_UNOIDL NoSuchFileException final { public: SAL_DLLPRIVATE NoSuchFileException(rtl::OUString const & uri): uri_(uri) {} SAL_DLLPRIVATE NoSuchFileException(NoSuchFileException const & other): uri_(other.uri_) {} - virtual SAL_DLLPRIVATE ~NoSuchFileException() throw (); + SAL_DLLPRIVATE ~NoSuchFileException() throw (); const rtl::OUString& getUri() const { return uri_; } @@ -41,7 +41,7 @@ private: rtl::OUString uri_; }; -class LO_DLLPUBLIC_UNOIDL FileFormatException { +class LO_DLLPUBLIC_UNOIDL FileFormatException final { public: SAL_DLLPRIVATE FileFormatException( rtl::OUString const & uri, rtl::OUString const & detail): @@ -52,7 +52,7 @@ public: uri_(other.uri_), detail_(other.detail_) {} - virtual SAL_DLLPRIVATE ~FileFormatException() throw (); + SAL_DLLPRIVATE ~FileFormatException() throw (); const rtl::OUString& getUri() const { return uri_; } diff --git a/include/vbahelper/vbacollectionimpl.hxx b/include/vbahelper/vbacollectionimpl.hxx index 114380795df2..60d48c228758 100644 --- a/include/vbahelper/vbacollectionimpl.hxx +++ b/include/vbahelper/vbacollectionimpl.hxx @@ -273,7 +273,7 @@ protected: return createCollectionObject( m_xIndexAccess->getByIndex( nIndex - 1 ) ); } - virtual void UpdateCollectionIndex( const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess ) + void UpdateCollectionIndex( const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess ) { css::uno::Reference< css::container::XNameAccess > xNameAccess( xIndexAccess, css::uno::UNO_QUERY_THROW ); m_xIndexAccess = xIndexAccess; |