From 362d4f0cd4e50111edfae9d30c90602c37ed65a2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 1 Apr 2014 19:18:35 +0200 Subject: 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 --- hwpfilter/source/attributes.hxx | 2 +- hwpfilter/source/hwpreader.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'hwpfilter') diff --git a/hwpfilter/source/attributes.hxx b/hwpfilter/source/attributes.hxx index f9a5284f8118..7909e8fbd4f5 100644 --- a/hwpfilter/source/attributes.hxx +++ b/hwpfilter/source/attributes.hxx @@ -39,7 +39,7 @@ struct AttributeListImpl_impl; class AttributeListImpl : public WeakImplHelper1< XAttributeList > { protected: - ~AttributeListImpl(); + virtual ~AttributeListImpl(); public: AttributeListImpl(); diff --git a/hwpfilter/source/hwpreader.hxx b/hwpfilter/source/hwpreader.hxx index 3eb537cbec2e..306b2f5a7c73 100644 --- a/hwpfilter/source/hwpreader.hxx +++ b/hwpfilter/source/hwpreader.hxx @@ -79,7 +79,7 @@ class HwpReader : public WeakImplHelper1 public: HwpReader(); - ~HwpReader(); + virtual ~HwpReader(); public: /** @@ -158,7 +158,7 @@ class HwpImportFilter : public WeakImplHelper4< XFilter, XImporter, XServiceInfo { public: HwpImportFilter( const Reference< XMultiServiceFactory > xFact ); - ~HwpImportFilter(); + virtual ~HwpImportFilter(); public: static Sequence< OUString > getSupportedServiceNames_Static() throw(); -- cgit