From ebd164d8a70657216d653a71cb31d872a147777e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 23 Jan 2019 09:09:02 +0200 Subject: loplugin:constparams in xmloff Change-Id: I8874c9204b8bf8f422fb5bb826a340b787589360 Reviewed-on: https://gerrit.libreoffice.org/66768 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/text/XMLPropertyBackpatcher.cxx | 9 --------- xmloff/source/text/XMLPropertyBackpatcher.hxx | 6 ------ xmloff/source/text/XMLTextListAutoStylePool.cxx | 2 +- 3 files changed, 1 insertion(+), 16 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/text/XMLPropertyBackpatcher.cxx b/xmloff/source/text/XMLPropertyBackpatcher.cxx index a9f245d7229e..e5f18a7b25c3 100644 --- a/xmloff/source/text/XMLPropertyBackpatcher.cxx +++ b/xmloff/source/text/XMLPropertyBackpatcher.cxx @@ -79,15 +79,6 @@ template void XMLPropertyBackpatcher::SetProperty( const Reference & xPropSet, const OUString& sName) -{ - Reference xNonConstPropSet(xPropSet); - SetProperty(xNonConstPropSet, sName); -} - -template -void XMLPropertyBackpatcher::SetProperty( - Reference & xPropSet, - const OUString& sName) { if (aIDMap.count(sName)) { diff --git a/xmloff/source/text/XMLPropertyBackpatcher.hxx b/xmloff/source/text/XMLPropertyBackpatcher.hxx index 029f25e66e4a..9cdda65f11d6 100644 --- a/xmloff/source/text/XMLPropertyBackpatcher.hxx +++ b/xmloff/source/text/XMLPropertyBackpatcher.hxx @@ -88,15 +88,9 @@ public: /// Set property with the proper value for this name. If the value /// is not yet known, store the XPropertySet in the backpatch list. /// Use this whenever the value should be set, even if it is not yet known. - /// const version void SetProperty( const css::uno::Reference & xPropSet, const OUString& sName); - - /// non-const version of SetProperty - void SetProperty( - css::uno::Reference & xPropSet, - const OUString& sName); }; #endif diff --git a/xmloff/source/text/XMLTextListAutoStylePool.cxx b/xmloff/source/text/XMLTextListAutoStylePool.cxx index 3736a201ca74..d77ad5e8e7c3 100644 --- a/xmloff/source/text/XMLTextListAutoStylePool.cxx +++ b/xmloff/source/text/XMLTextListAutoStylePool.cxx @@ -164,7 +164,7 @@ void XMLTextListAutoStylePool::RegisterName( const OUString& rName ) m_aNames.insert(rName); } -sal_uInt32 XMLTextListAutoStylePool::Find( XMLTextListAutoStylePoolEntry_Impl* pEntry ) const +sal_uInt32 XMLTextListAutoStylePool::Find( const XMLTextListAutoStylePoolEntry_Impl* pEntry ) const { if( !pEntry->IsNamed() && mxNumRuleCompare.is() ) { -- cgit v1.2.3