diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-23 09:09:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-23 10:44:16 +0100 |
commit | ebd164d8a70657216d653a71cb31d872a147777e (patch) | |
tree | 1fb74a0d069bb9f9de49cc744f7dab29a35dd36f /xmloff | |
parent | d010dd58e8afd7e135c7479dcabd6986eadb664f (diff) |
loplugin:constparams in xmloff
Change-Id: I8874c9204b8bf8f422fb5bb826a340b787589360
Reviewed-on: https://gerrit.libreoffice.org/66768
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLPropertyBackpatcher.cxx | 9 | ||||
-rw-r--r-- | xmloff/source/text/XMLPropertyBackpatcher.hxx | 6 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextListAutoStylePool.cxx | 2 |
3 files changed, 1 insertions, 16 deletions
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 @@ -80,15 +80,6 @@ void XMLPropertyBackpatcher<A>::SetProperty( const Reference<XPropertySet> & xPropSet, const OUString& sName) { - Reference<XPropertySet> xNonConstPropSet(xPropSet); - SetProperty(xNonConstPropSet, sName); -} - -template<class A> -void XMLPropertyBackpatcher<A>::SetProperty( - Reference<XPropertySet> & xPropSet, - const OUString& sName) -{ if (aIDMap.count(sName)) { // we know this ID -> set property 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<css::beans::XPropertySet> & xPropSet, const OUString& sName); - - /// non-const version of SetProperty - void SetProperty( - css::uno::Reference<css::beans::XPropertySet> & 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() ) { |