summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-03-10 14:41:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-03-11 09:06:06 +0100
commit7002caa97e10d29353d3490b4fbb782d436575b3 (patch)
tree98c254c9f94272e145417034f5cdc85b942edf74 /xmloff
parenta370e7ff7e8225b8343678401eca5a1721b2b9bb (diff)
new loplugin:trivialdestructor
look for potentially trivial destructors that can then be elided Change-Id: I435c251bd4291b5864c20d68f88676faac7c43fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131318 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/inc/TransGradientStyle.hxx2
-rw-r--r--xmloff/inc/XMLBackgroundImageExport.hxx2
-rw-r--r--xmloff/inc/XMLImageMapExport.hxx2
-rw-r--r--xmloff/inc/xmltabe.hxx1
-rw-r--r--xmloff/source/chart/SchXMLPlotAreaContext.cxx4
-rw-r--r--xmloff/source/chart/SchXMLPlotAreaContext.hxx1
-rw-r--r--xmloff/source/draw/XMLImageMapExport.cxx5
-rw-r--r--xmloff/source/style/DashStyle.cxx8
-rw-r--r--xmloff/source/style/GradientStyle.cxx8
-rw-r--r--xmloff/source/style/HatchStyle.cxx8
-rw-r--r--xmloff/source/style/MarkerStyle.cxx8
-rw-r--r--xmloff/source/style/TransGradientStyle.cxx8
-rw-r--r--xmloff/source/style/XMLBackgroundImageExport.cxx4
-rw-r--r--xmloff/source/style/XMLFootnoteSeparatorExport.cxx5
-rw-r--r--xmloff/source/style/XMLFootnoteSeparatorExport.hxx2
-rw-r--r--xmloff/source/style/xmlnume.cxx4
-rw-r--r--xmloff/source/style/xmltabe.cxx4
-rw-r--r--xmloff/source/text/XMLIndexMarkExport.cxx4
-rw-r--r--xmloff/source/text/XMLIndexMarkExport.hxx2
-rw-r--r--xmloff/source/text/txtdrope.cxx4
-rw-r--r--xmloff/source/text/txtdrope.hxx1
21 files changed, 0 insertions, 87 deletions
diff --git a/xmloff/inc/TransGradientStyle.hxx b/xmloff/inc/TransGradientStyle.hxx
index f01ae1c19596..781969f7db93 100644
--- a/xmloff/inc/TransGradientStyle.hxx
+++ b/xmloff/inc/TransGradientStyle.hxx
@@ -37,7 +37,6 @@ class XMLTransGradientStyleImport
public:
XMLTransGradientStyleImport( SvXMLImport& rImport );
- ~XMLTransGradientStyleImport();
void importXML(
const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList,
@@ -51,7 +50,6 @@ class XMLTransGradientStyleExport
public:
XMLTransGradientStyleExport( SvXMLExport& rExport );
- ~XMLTransGradientStyleExport();
void exportXML( const OUString& rStrName, const css::uno::Any& rValue );
};
diff --git a/xmloff/inc/XMLBackgroundImageExport.hxx b/xmloff/inc/XMLBackgroundImageExport.hxx
index 1eafe86ba5ec..401df38ef263 100644
--- a/xmloff/inc/XMLBackgroundImageExport.hxx
+++ b/xmloff/inc/XMLBackgroundImageExport.hxx
@@ -38,8 +38,6 @@ public:
XMLBackgroundImageExport( SvXMLExport& rExport );
- ~XMLBackgroundImageExport();
-
void exportXML( const css::uno::Any& rURL,
const css::uno::Any *pPos,
const css::uno::Any *pFilter,
diff --git a/xmloff/inc/XMLImageMapExport.hxx b/xmloff/inc/XMLImageMapExport.hxx
index ddf62bb6f394..12679b6dbb5a 100644
--- a/xmloff/inc/XMLImageMapExport.hxx
+++ b/xmloff/inc/XMLImageMapExport.hxx
@@ -39,8 +39,6 @@ class XMLImageMapExport
public:
XMLImageMapExport(SvXMLExport& rExport);
- ~XMLImageMapExport();
-
/**
* Get the ImageMap object from the "ImageMap" property and subsequently
* export the map (if present).
diff --git a/xmloff/inc/xmltabe.hxx b/xmloff/inc/xmltabe.hxx
index 0023490e299f..af2873b7656a 100644
--- a/xmloff/inc/xmltabe.hxx
+++ b/xmloff/inc/xmltabe.hxx
@@ -40,7 +40,6 @@ class SvxXMLTabStopExport final
public:
SvxXMLTabStopExport( SvXMLExport& rExport );
- ~SvxXMLTabStopExport();
// core API
void Export( const css::uno::Any& rAny );
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.cxx b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
index a23a2c0dbde7..e1ca44503506 100644
--- a/xmloff/source/chart/SchXMLPlotAreaContext.cxx
+++ b/xmloff/source/chart/SchXMLPlotAreaContext.cxx
@@ -811,10 +811,6 @@ SchXMLPositionAttributesHelper::SchXMLPositionAttributesHelper( SvXMLImport& rIm
{
}
-SchXMLPositionAttributesHelper::~SchXMLPositionAttributesHelper()
-{
-}
-
bool SchXMLPositionAttributesHelper::hasPosSize() const
{
return (m_bHasPositionX && m_bHasPositionY) && (m_bHasSizeWidth && m_bHasSizeHeight);
diff --git a/xmloff/source/chart/SchXMLPlotAreaContext.hxx b/xmloff/source/chart/SchXMLPlotAreaContext.hxx
index f80ee6f4840a..a1de29e187e1 100644
--- a/xmloff/source/chart/SchXMLPlotAreaContext.hxx
+++ b/xmloff/source/chart/SchXMLPlotAreaContext.hxx
@@ -57,7 +57,6 @@ class SchXMLPositionAttributesHelper
{
public:
explicit SchXMLPositionAttributesHelper( SvXMLImport& rImporter );
- ~SchXMLPositionAttributesHelper();
void readPositioningAttribute( sal_Int32 nAttributeToken, std::string_view rValue );
void readAutomaticPositioningProperties( XMLPropStyleContext const * pPropStyleContext, const SvXMLStylesContext* pStylesCtxt );
diff --git a/xmloff/source/draw/XMLImageMapExport.cxx b/xmloff/source/draw/XMLImageMapExport.cxx
index 746d975b737a..918d13ad07ce 100644
--- a/xmloff/source/draw/XMLImageMapExport.cxx
+++ b/xmloff/source/draw/XMLImageMapExport.cxx
@@ -70,11 +70,6 @@ XMLImageMapExport::XMLImageMapExport(SvXMLExport& rExp) :
{
}
-XMLImageMapExport::~XMLImageMapExport()
-{
-
-}
-
void XMLImageMapExport::Export(
const Reference<XPropertySet> & rPropertySet)
{
diff --git a/xmloff/source/style/DashStyle.cxx b/xmloff/source/style/DashStyle.cxx
index 532efb79a9b2..acb866df84bd 100644
--- a/xmloff/source/style/DashStyle.cxx
+++ b/xmloff/source/style/DashStyle.cxx
@@ -54,10 +54,6 @@ XMLDashStyleImport::XMLDashStyleImport( SvXMLImport& rImp )
{
}
-XMLDashStyleImport::~XMLDashStyleImport()
-{
-}
-
void XMLDashStyleImport::importXML(
const uno::Reference< xml::sax::XFastAttributeList >& xAttrList,
uno::Any& rValue,
@@ -180,10 +176,6 @@ XMLDashStyleExport::XMLDashStyleExport( SvXMLExport& rExp )
{
}
-XMLDashStyleExport::~XMLDashStyleExport()
-{
-}
-
void XMLDashStyleExport::exportXML(
const OUString& rStrName,
const uno::Any& rValue )
diff --git a/xmloff/source/style/GradientStyle.cxx b/xmloff/source/style/GradientStyle.cxx
index 2f450af819d7..17c058727679 100644
--- a/xmloff/source/style/GradientStyle.cxx
+++ b/xmloff/source/style/GradientStyle.cxx
@@ -57,10 +57,6 @@ XMLGradientStyleImport::XMLGradientStyleImport(
{
}
-XMLGradientStyleImport::~XMLGradientStyleImport()
-{
-}
-
void XMLGradientStyleImport::importXML(
const uno::Reference< xml::sax::XFastAttributeList >& xAttrList,
uno::Any& rValue,
@@ -154,10 +150,6 @@ XMLGradientStyleExport::XMLGradientStyleExport(
{
}
-XMLGradientStyleExport::~XMLGradientStyleExport()
-{
-}
-
void XMLGradientStyleExport::exportXML(
const OUString& rStrName,
const uno::Any& rValue )
diff --git a/xmloff/source/style/HatchStyle.cxx b/xmloff/source/style/HatchStyle.cxx
index 875ff203d0ce..f49fc4a5af13 100644
--- a/xmloff/source/style/HatchStyle.cxx
+++ b/xmloff/source/style/HatchStyle.cxx
@@ -54,10 +54,6 @@ XMLHatchStyleImport::XMLHatchStyleImport( SvXMLImport& rImp )
{
}
-XMLHatchStyleImport::~XMLHatchStyleImport()
-{
-}
-
void XMLHatchStyleImport::importXML(
const uno::Reference< xml::sax::XFastAttributeList >& xAttrList,
uno::Any& rValue,
@@ -127,10 +123,6 @@ XMLHatchStyleExport::XMLHatchStyleExport( SvXMLExport& rExp )
{
}
-XMLHatchStyleExport::~XMLHatchStyleExport()
-{
-}
-
void XMLHatchStyleExport::exportXML(
const OUString& rStrName,
const uno::Any& rValue )
diff --git a/xmloff/source/style/MarkerStyle.cxx b/xmloff/source/style/MarkerStyle.cxx
index 181699026d8f..8f902feb9cbd 100644
--- a/xmloff/source/style/MarkerStyle.cxx
+++ b/xmloff/source/style/MarkerStyle.cxx
@@ -44,10 +44,6 @@ XMLMarkerStyleImport::XMLMarkerStyleImport( SvXMLImport& rImp )
{
}
-XMLMarkerStyleImport::~XMLMarkerStyleImport()
-{
-}
-
void XMLMarkerStyleImport::importXML(
const uno::Reference< xml::sax::XFastAttributeList >& xAttrList,
uno::Any& rValue,
@@ -142,10 +138,6 @@ XMLMarkerStyleExport::XMLMarkerStyleExport( SvXMLExport& rExp )
{
}
-XMLMarkerStyleExport::~XMLMarkerStyleExport()
-{
-}
-
void XMLMarkerStyleExport::exportXML(
const OUString& rStrName,
const uno::Any& rValue )
diff --git a/xmloff/source/style/TransGradientStyle.cxx b/xmloff/source/style/TransGradientStyle.cxx
index e76ec666492a..9b000c3eb448 100644
--- a/xmloff/source/style/TransGradientStyle.cxx
+++ b/xmloff/source/style/TransGradientStyle.cxx
@@ -58,10 +58,6 @@ XMLTransGradientStyleImport::XMLTransGradientStyleImport( SvXMLImport& rImp )
{
}
-XMLTransGradientStyleImport::~XMLTransGradientStyleImport()
-{
-}
-
void XMLTransGradientStyleImport::importXML(
const uno::Reference< xml::sax::XFastAttributeList >& xAttrList,
uno::Any& rValue,
@@ -170,10 +166,6 @@ XMLTransGradientStyleExport::XMLTransGradientStyleExport( SvXMLExport& rExp )
{
}
-XMLTransGradientStyleExport::~XMLTransGradientStyleExport()
-{
-}
-
void XMLTransGradientStyleExport::exportXML(
const OUString& rStrName,
const uno::Any& rValue )
diff --git a/xmloff/source/style/XMLBackgroundImageExport.cxx b/xmloff/source/style/XMLBackgroundImageExport.cxx
index 496856caa799..c3ae8748a538 100644
--- a/xmloff/source/style/XMLBackgroundImageExport.cxx
+++ b/xmloff/source/style/XMLBackgroundImageExport.cxx
@@ -40,10 +40,6 @@ XMLBackgroundImageExport::XMLBackgroundImageExport( SvXMLExport& rExp ) :
{
}
-XMLBackgroundImageExport::~XMLBackgroundImageExport()
-{
-}
-
void XMLBackgroundImageExport::exportXML( const Any& rGraphicAny,
const Any *pPos,
const Any *pFilter,
diff --git a/xmloff/source/style/XMLFootnoteSeparatorExport.cxx b/xmloff/source/style/XMLFootnoteSeparatorExport.cxx
index 2e756d0f6641..c5e160dffd3e 100644
--- a/xmloff/source/style/XMLFootnoteSeparatorExport.cxx
+++ b/xmloff/source/style/XMLFootnoteSeparatorExport.cxx
@@ -43,11 +43,6 @@ XMLFootnoteSeparatorExport::XMLFootnoteSeparatorExport(SvXMLExport& rExp) :
{
}
-XMLFootnoteSeparatorExport::~XMLFootnoteSeparatorExport()
-{
-}
-
-
void XMLFootnoteSeparatorExport::exportXML(
const vector<XMLPropertyState> * pProperties,
sal_uInt32 const nIdx,
diff --git a/xmloff/source/style/XMLFootnoteSeparatorExport.hxx b/xmloff/source/style/XMLFootnoteSeparatorExport.hxx
index c4f500f161be..2784e291b6a8 100644
--- a/xmloff/source/style/XMLFootnoteSeparatorExport.hxx
+++ b/xmloff/source/style/XMLFootnoteSeparatorExport.hxx
@@ -40,8 +40,6 @@ public:
explicit XMLFootnoteSeparatorExport(SvXMLExport& rExp);
- ~XMLFootnoteSeparatorExport();
-
void exportXML(
const ::std::vector<XMLPropertyState> * pProperties,
sal_uInt32 nIdx,
diff --git a/xmloff/source/style/xmlnume.cxx b/xmloff/source/style/xmlnume.cxx
index 63e70ed9ee7b..682fc648af41 100644
--- a/xmloff/source/style/xmlnume.cxx
+++ b/xmloff/source/style/xmlnume.cxx
@@ -641,10 +641,6 @@ SvxXMLNumRuleExport::SvxXMLNumRuleExport( SvXMLExport& rExp ) :
}
}
-SvxXMLNumRuleExport::~SvxXMLNumRuleExport()
-{
-}
-
void SvxXMLNumRuleExport::exportNumberingRule(
const OUString& rName, bool bIsHidden,
const Reference< XIndexReplace >& rNumRule )
diff --git a/xmloff/source/style/xmltabe.cxx b/xmloff/source/style/xmltabe.cxx
index 492f65653405..661caedf6f69 100644
--- a/xmloff/source/style/xmltabe.cxx
+++ b/xmloff/source/style/xmltabe.cxx
@@ -96,10 +96,6 @@ SvxXMLTabStopExport::SvxXMLTabStopExport(
{
}
-SvxXMLTabStopExport::~SvxXMLTabStopExport()
-{
-}
-
void SvxXMLTabStopExport::Export( const uno::Any& rAny )
{
uno::Sequence< css::style::TabStop> aSeq;
diff --git a/xmloff/source/text/XMLIndexMarkExport.cxx b/xmloff/source/text/XMLIndexMarkExport.cxx
index b728c94120cc..f27c87d9eadd 100644
--- a/xmloff/source/text/XMLIndexMarkExport.cxx
+++ b/xmloff/source/text/XMLIndexMarkExport.cxx
@@ -54,10 +54,6 @@ const enum XMLTokenEnum lcl_pAlphaIndexMarkName[] =
XML_ALPHABETICAL_INDEX_MARK_END };
-XMLIndexMarkExport::~XMLIndexMarkExport()
-{
-}
-
void XMLIndexMarkExport::ExportIndexMark(
const Reference<XPropertySet> & rPropSet,
bool bAutoStyles)
diff --git a/xmloff/source/text/XMLIndexMarkExport.hxx b/xmloff/source/text/XMLIndexMarkExport.hxx
index 95b33f071f83..e406401a676b 100644
--- a/xmloff/source/text/XMLIndexMarkExport.hxx
+++ b/xmloff/source/text/XMLIndexMarkExport.hxx
@@ -55,8 +55,6 @@ class XMLIndexMarkExport
public:
explicit XMLIndexMarkExport(SvXMLExport& rExp);
- ~XMLIndexMarkExport();
-
/**
* export by the property set of its *text* *portion*.
*
diff --git a/xmloff/source/text/txtdrope.cxx b/xmloff/source/text/txtdrope.cxx
index 63b9222e14a3..5013d422c28b 100644
--- a/xmloff/source/text/txtdrope.cxx
+++ b/xmloff/source/text/txtdrope.cxx
@@ -37,10 +37,6 @@ XMLTextDropCapExport::XMLTextDropCapExport( SvXMLExport& rExp ) :
{
}
-XMLTextDropCapExport::~XMLTextDropCapExport()
-{
-}
-
void XMLTextDropCapExport::exportXML( const Any& rAny,
bool bWholeWord,
const OUString& rStyleName )
diff --git a/xmloff/source/text/txtdrope.hxx b/xmloff/source/text/txtdrope.hxx
index fb477b17edb9..6e6b05a0bed1 100644
--- a/xmloff/source/text/txtdrope.hxx
+++ b/xmloff/source/text/txtdrope.hxx
@@ -31,7 +31,6 @@ class XMLTextDropCapExport
public:
explicit XMLTextDropCapExport( SvXMLExport& rExport );
- ~XMLTextDropCapExport();
void exportXML( const css::uno::Any& rAny,
bool bWholeWord,