summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-01 19:18:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-01 19:22:54 +0200
commit362d4f0cd4e50111edfae9d30c90602c37ed65a2 (patch)
tree0b432c049d580dcac6130bca9fb028bab8af8fa8 /svl
parentb66d87086804460c1986df1b832fd6b2ea075a90 (diff)
Explicitly mark overriding destructors as "virtual"
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
Diffstat (limited to 'svl')
-rw-r--r--svl/qa/unit/svl.cxx2
-rw-r--r--svl/source/config/cjkoptions.cxx2
-rw-r--r--svl/source/config/ctloptions.cxx2
-rw-r--r--svl/source/inc/passwordcontainer.hxx2
-rw-r--r--svl/source/numbers/supservs.hxx2
5 files changed, 5 insertions, 5 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index dc816de1a5ec..47c9ff834c1b 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -46,7 +46,7 @@ namespace {
class Test : public CppUnit::TestFixture {
public:
Test();
- ~Test();
+ virtual ~Test();
virtual void setUp() SAL_OVERRIDE;
virtual void tearDown() SAL_OVERRIDE;
diff --git a/svl/source/config/cjkoptions.cxx b/svl/source/config/cjkoptions.cxx
index 3840944d7ba9..05a4f5ea1edf 100644
--- a/svl/source/config/cjkoptions.cxx
+++ b/svl/source/config/cjkoptions.cxx
@@ -61,7 +61,7 @@ class SvtCJKOptions_Impl : public utl::ConfigItem
public:
SvtCJKOptions_Impl();
- ~SvtCJKOptions_Impl();
+ virtual ~SvtCJKOptions_Impl();
virtual void Notify( const com::sun::star::uno::Sequence< OUString >& rPropertyNames ) SAL_OVERRIDE;
virtual void Commit() SAL_OVERRIDE;
diff --git a/svl/source/config/ctloptions.cxx b/svl/source/config/ctloptions.cxx
index 227dd2308baa..37a193fa713d 100644
--- a/svl/source/config/ctloptions.cxx
+++ b/svl/source/config/ctloptions.cxx
@@ -59,7 +59,7 @@ private:
public:
SvtCTLOptions_Impl();
- ~SvtCTLOptions_Impl();
+ virtual ~SvtCTLOptions_Impl();
virtual void Notify( const Sequence< OUString >& _aPropertyNames ) SAL_OVERRIDE;
virtual void Commit() SAL_OVERRIDE;
diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx
index 9742e6ecb255..2933a7605c75 100644
--- a/svl/source/inc/passwordcontainer.hxx
+++ b/svl/source/inc/passwordcontainer.hxx
@@ -296,7 +296,7 @@ bool createUrlRecord(
public:
PasswordContainer( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
- ~PasswordContainer();
+ virtual ~PasswordContainer();
virtual void SAL_CALL add( const OUString& aUrl,
const OUString& aUserName,
diff --git a/svl/source/numbers/supservs.hxx b/svl/source/numbers/supservs.hxx
index 48ee2c0e278a..c045efdfa1b6 100644
--- a/svl/source/numbers/supservs.hxx
+++ b/svl/source/numbers/supservs.hxx
@@ -52,7 +52,7 @@ protected:
public:
SvNumberFormatsSupplierServiceObject(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB);
- ~SvNumberFormatsSupplierServiceObject();
+ virtual ~SvNumberFormatsSupplierServiceObject();
// XInterface
virtual void SAL_CALL acquire() throw() SAL_OVERRIDE { SvNumberFormatsSupplierObj::acquire(); }