summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwpproplist.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-17 09:10:47 +0200
committerNoel Grandin <noel@peralex.com>2014-03-17 13:30:49 +0200
commit6319265b13321d6bfb527c7bd5b910d4dce4f203 (patch)
treee7ebfa9f8b20e288326f9e80b0a2f51017f7cb6e /lotuswordpro/source/filter/lwpproplist.cxx
parentFix fdo#75936 set limit for decreasing indent (diff)
downloadcore-6319265b13321d6bfb527c7bd5b910d4dce4f203.tar.gz
core-6319265b13321d6bfb527c7bd5b910d4dce4f203.zip
lotuswordpro: prefer passing OUString by reference
Change-Id: Ic94616a7bc34ec5a85ea84178c7d798194201ebe
Diffstat (limited to 'lotuswordpro/source/filter/lwpproplist.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpproplist.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwpproplist.cxx b/lotuswordpro/source/filter/lwpproplist.cxx
index 01646b22e3c0..8bd20f55a815 100644
--- a/lotuswordpro/source/filter/lwpproplist.cxx
+++ b/lotuswordpro/source/filter/lwpproplist.cxx
@@ -82,12 +82,12 @@ void LwpPropListElement::Read()
m_pObjStrm->SkipExtra();
}
-sal_Bool LwpPropListElement::IsNamed(OUString name)
+sal_Bool LwpPropListElement::IsNamed(const OUString& name)
{
return name.equals(m_Name.str());
}
-OUString LwpPropList::GetNamedProperty(OUString name)
+OUString LwpPropList::GetNamedProperty(const OUString& name)
{
LwpPropListElement* pProp = FindPropByName(name);
if (pProp)
@@ -97,7 +97,7 @@ OUString LwpPropList::GetNamedProperty(OUString name)
return OUString("");
}
-LwpPropListElement* LwpPropList::FindPropByName(OUString name)
+LwpPropListElement* LwpPropList::FindPropByName(const OUString& name)
{
LwpPropListElement* pElement = GetFirst();