summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-07 10:17:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-07 12:06:35 +0000
commitd4f78fa3b61a54dca64504bd76990baf20e2313f (patch)
tree9b05eb19f939a694dc3b9db3efa31dc1d5735abb /sw/inc
parentb7914a9a566413eac55c7e115da1cb3552cd58df (diff)
loplugin:unnecessaryvirtual in svx..sw
Change-Id: I4ae8de558550e6577c28b95e0aaed74f00d79c29 Reviewed-on: https://gerrit.libreoffice.org/30650 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/pagedesc.hxx4
-rw-r--r--sw/inc/swcrsr.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/pagedesc.hxx b/sw/inc/pagedesc.hxx
index 9e3bd2e67282..592886df9ccc 100644
--- a/sw/inc/pagedesc.hxx
+++ b/sw/inc/pagedesc.hxx
@@ -392,7 +392,7 @@ typedef boost::multi_index_container<
>
SwPageDescsBase;
-class SwPageDescs
+class SwPageDescs final
{
// function updating ByName index via modify
friend bool SwPageDesc::SetName( const OUString& rNewName );
@@ -415,7 +415,7 @@ public:
SwPageDescs();
// frees all SwPageDesc!
- virtual ~SwPageDescs();
+ ~SwPageDescs();
void clear() { return m_Array.clear(); }
bool empty() const { return m_Array.empty(); }
diff --git a/sw/inc/swcrsr.hxx b/sw/inc/swcrsr.hxx
index b2d03e0b62a0..0f9ab9fb3f7a 100644
--- a/sw/inc/swcrsr.hxx
+++ b/sw/inc/swcrsr.hxx
@@ -239,7 +239,7 @@ public:
};
// internal, used by SwCursor::SaveState() etc.
-struct SwCursor_SavePos
+struct SwCursor_SavePos final
{
sal_uLong nNode;
sal_Int32 nContent;
@@ -250,7 +250,7 @@ struct SwCursor_SavePos
nContent( rCursor.GetPoint()->nContent.GetIndex() ),
pNext( nullptr )
{}
- virtual ~SwCursor_SavePos() {}
+ ~SwCursor_SavePos() {}
DECL_FIXEDMEMPOOL_NEWDEL( SwCursor_SavePos )
};