[Libreoffice-commits] core.git: writerfilter/source
Tor Lillqvist
tml at collabora.com
Sat Mar 22 23:39:19 PDT 2014
writerfilter/source/dmapper/SdtHelper.cxx | 2 +-
writerfilter/source/dmapper/SdtHelper.hxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit e96e3aa0f12fb0d4e041cd44317d246096c89d78
Author: Tor Lillqvist <tml at collabora.com>
Date: Sun Mar 23 08:35:32 2014 +0200
WaE: passing OUString by value, rather pass by reference [loplugin]
Change-Id: Ib2c0469155874134c0a43c5c8982e40cf3c57208
diff --git a/writerfilter/source/dmapper/SdtHelper.cxx b/writerfilter/source/dmapper/SdtHelper.cxx
index 22f1198..ad3c315 100644
--- a/writerfilter/source/dmapper/SdtHelper.cxx
+++ b/writerfilter/source/dmapper/SdtHelper.cxx
@@ -220,7 +220,7 @@ sal_Int32 SdtHelper::getInteropGrabBagSize()
return m_aGrabBag.getLength();
}
-bool SdtHelper::containedInInteropGrabBag(OUString rValueName)
+bool SdtHelper::containedInInteropGrabBag(const OUString& rValueName)
{
for (sal_Int32 i=0; i < m_aGrabBag.getLength(); ++i)
if (m_aGrabBag[i].Name == rValueName)
diff --git a/writerfilter/source/dmapper/SdtHelper.hxx b/writerfilter/source/dmapper/SdtHelper.hxx
index cfdd875..76ef462 100644
--- a/writerfilter/source/dmapper/SdtHelper.hxx
+++ b/writerfilter/source/dmapper/SdtHelper.hxx
@@ -87,7 +87,7 @@ public:
void appendToInteropGrabBag(com::sun::star::beans::PropertyValue rValue);
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> getInteropGrabBagAndClear();
bool isInteropGrabBagEmpty();
- bool containedInInteropGrabBag(OUString rValueName);
+ bool containedInInteropGrabBag(const OUString& rValueName);
sal_Int32 getInteropGrabBagSize();
};
More information about the Libreoffice-commits
mailing list