diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-03 15:12:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-04 07:15:03 +0000 |
commit | 5f77e6e9309cab4633fa8211f9788af9a9a793c9 (patch) | |
tree | b9116cbe98af0a17b2b7448d00d7aa7033b226ae /xmloff | |
parent | 7abd369964a0c7f9f80cdbc9e47c7dc120fe8257 (diff) |
update loplugin:unnnecessaryvirtual to handler destructors
and update modules writerfilter..xmloff with the resulting changes
Change-Id: I54d19c22ddb0ff579b32e4934d266c925b19305c
Reviewed-on: https://gerrit.libreoffice.org/30530
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/txtflde.hxx | 4 | ||||
-rw-r--r-- | xmloff/inc/txtvfldi.hxx | 4 | ||||
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/animationexport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/forms/formattributes.hxx | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/xmloff/inc/txtflde.hxx b/xmloff/inc/txtflde.hxx index 4be936bfaf16..ba65fd435eff 100644 --- a/xmloff/inc/txtflde.hxx +++ b/xmloff/inc/txtflde.hxx @@ -149,7 +149,7 @@ enum FieldIdEnum { }; -class XMLTextFieldExport +class XMLTextFieldExport final { SvXMLExport& rExport; @@ -164,7 +164,7 @@ public: XMLTextFieldExport( SvXMLExport& rExp, /// XMLPropertyState for the combined characters field XMLPropertyState* pCombinedCharState ); - virtual ~XMLTextFieldExport(); + ~XMLTextFieldExport(); /// Export this field and the surrounding span element with the formatting. /// To be called for every field in the document body. diff --git a/xmloff/inc/txtvfldi.hxx b/xmloff/inc/txtvfldi.hxx index 02df858d3b4d..26f14cd019f9 100644 --- a/xmloff/inc/txtvfldi.hxx +++ b/xmloff/inc/txtvfldi.hxx @@ -31,7 +31,7 @@ /** helper class: parses value-type and associated value attributes */ -class XMLValueImportHelper +class XMLValueImportHelper final { const OUString sPropertyContent; @@ -70,7 +70,7 @@ public: bool bValue, /// process value (Prep.Field) bool bFormula); /// process formula (Prep.F.) - virtual ~XMLValueImportHelper(); + ~XMLValueImportHelper(); /// process attribute values void ProcessAttribute( sal_uInt16 nAttrToken, diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 843ae9c4eb9f..6bc6a90c3d8e 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -129,7 +129,7 @@ public: SchXMLExportHelper_Impl( SvXMLExport& rExport, SvXMLAutoStylePoolP& rASPool ); - virtual ~SchXMLExportHelper_Impl(); + ~SchXMLExportHelper_Impl(); SchXMLExportHelper_Impl(const SchXMLExportHelper_Impl&) = delete; SchXMLExportHelper_Impl& operator=(const SchXMLExportHelper_Impl&) = delete; diff --git a/xmloff/source/draw/animationexport.cxx b/xmloff/source/draw/animationexport.cxx index 88ba4da34785..3b36471bafc4 100644 --- a/xmloff/source/draw/animationexport.cxx +++ b/xmloff/source/draw/animationexport.cxx @@ -503,7 +503,7 @@ class AnimationsExporterImpl { public: AnimationsExporterImpl( SvXMLExport& rExport, const Reference< XPropertySet >& xPageProps ); - virtual ~AnimationsExporterImpl(); + ~AnimationsExporterImpl(); void prepareNode( const Reference< XAnimationNode >& xNode ); void exportNode( const Reference< XAnimationNode >& xNode ); diff --git a/xmloff/source/forms/formattributes.hxx b/xmloff/source/forms/formattributes.hxx index d0a2405ce605..5bed7db46f17 100644 --- a/xmloff/source/forms/formattributes.hxx +++ b/xmloff/source/forms/formattributes.hxx @@ -271,7 +271,7 @@ namespace xmloff <p>The construction of this class is rather expensive (or at least it's initialization from outside), so it should be shared</p> */ - class OAttribute2Property + class OAttribute2Property final { public: // TODO: maybe the following struct should be used for exports, too. In this case we would not need to @@ -295,7 +295,7 @@ namespace xmloff public: OAttribute2Property(); - virtual ~OAttribute2Property(); + ~OAttribute2Property(); /** return the AttributeAssignment which corresponds to the given attribute |