diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-03-23 08:35:32 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-03-23 08:37:46 +0200 |
commit | e96e3aa0f12fb0d4e041cd44317d246096c89d78 (patch) | |
tree | 9e3996769c4bb153eee598d93022b52ce8530329 /writerfilter | |
parent | e00136005db2784428f03635ff2f4a4e7196bb84 (diff) |
WaE: passing OUString by value, rather pass by reference [loplugin]
Change-Id: Ib2c0469155874134c0a43c5c8982e40cf3c57208
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/SdtHelper.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/SdtHelper.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/SdtHelper.cxx b/writerfilter/source/dmapper/SdtHelper.cxx index 22f11986fef7..ad3c3150bd65 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 cfdd875e7b6b..76ef4624033a 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(); }; |