summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-10 13:49:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-11 06:15:21 +0000
commit5c84f40ea2e86bf85c0a59201faf1431f16aee40 (patch)
tree43a8b61f71052b4e3202f334fce8c60e52827fed /xmloff
parentfe82f6fc5cbd638972571a33f04e95971507bba9 (diff)
loplugin:constantfunction
update the plugin similarly to commit 3ee3b36ae0c064fb5c81268d8d63444309d1b970 Author: Stephan Bergmann <sbergman@redhat.com> Date: Fri Oct 7 12:05:49 2016 +0200 loplugin:staticmethods: Don't be fooled by decls starting with macros Change-Id: I98ac3216d5acf89a49a26feb089ae2fd34e6e510 Reviewed-on: https://gerrit.libreoffice.org/29665 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlimp.cxx4
-rw-r--r--xmloff/source/style/xmlnume.cxx8
-rw-r--r--xmloff/source/text/XMLPropertyBackpatcher.cxx6
-rw-r--r--xmloff/source/text/XMLPropertyBackpatcher.hxx5
4 files changed, 0 insertions, 23 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 0e8f50ac7ca5..a8ebb9524a7e 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -330,10 +330,6 @@ public:
~SvXMLImport_Impl()
{
- if( hBatsFontConv )
- DestroyFontToSubsFontConverter( hBatsFontConv );
- if( hMathFontConv )
- DestroyFontToSubsFontConverter( hMathFontConv );
}
sal_uInt16 getGeneratorVersion( const SvXMLImport& rImport )
diff --git a/xmloff/source/style/xmlnume.cxx b/xmloff/source/style/xmlnume.cxx
index 073c2e72a383..dc0db67ce914 100644
--- a/xmloff/source/style/xmlnume.cxx
+++ b/xmloff/source/style/xmlnume.cxx
@@ -612,11 +612,6 @@ void SvxXMLNumRuleExport::exportLevelStyle( sal_Int32 nLevel,
}
-void SvxXMLNumRuleExport::AddListStyleAttributes()
-{
-}
-
-
SvxXMLNumRuleExport::SvxXMLNumRuleExport( SvXMLExport& rExp ) :
rExport( rExp ),
sNumberingRules( "NumberingRules" ),
@@ -682,9 +677,6 @@ void SvxXMLNumRuleExport::exportNumberingRule(
GetExport().AddAttribute( XML_NAMESPACE_TEXT,
XML_CONSECUTIVE_NUMBERING, XML_TRUE );
- // other application specific attributes
- AddListStyleAttributes();
-
{
SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_TEXT, XML_LIST_STYLE ,
true, true );
diff --git a/xmloff/source/text/XMLPropertyBackpatcher.cxx b/xmloff/source/text/XMLPropertyBackpatcher.cxx
index 08c2c17a19ea..4483dc91d6c8 100644
--- a/xmloff/source/text/XMLPropertyBackpatcher.cxx
+++ b/xmloff/source/text/XMLPropertyBackpatcher.cxx
@@ -41,7 +41,6 @@ XMLPropertyBackpatcher<A>::XMLPropertyBackpatcher(
template<class A>
XMLPropertyBackpatcher<A>::~XMLPropertyBackpatcher()
{
- SetDefault();
}
@@ -114,11 +113,6 @@ void XMLPropertyBackpatcher<A>::SetProperty(
}
}
-template<class A>
-void XMLPropertyBackpatcher<A>::SetDefault()
-{
-}
-
// force instantiation of templates
template class XMLPropertyBackpatcher<sal_Int16>;
template class XMLPropertyBackpatcher<OUString>;
diff --git a/xmloff/source/text/XMLPropertyBackpatcher.hxx b/xmloff/source/text/XMLPropertyBackpatcher.hxx
index af31ec5190db..7533261e99f0 100644
--- a/xmloff/source/text/XMLPropertyBackpatcher.hxx
+++ b/xmloff/source/text/XMLPropertyBackpatcher.hxx
@@ -101,11 +101,6 @@ public:
void SetProperty(
css::uno::Reference<css::beans::XPropertySet> & xPropSet,
const OUString& sName);
-
- /// set default (if bDefaultHandling) for unresolved names
- /// called by destructor
- static void SetDefault();
-
};
#endif