summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-14 07:46:08 +0200
committerNoel Grandin <noel@peralex.com>2014-03-14 07:47:01 +0200
commit358be80f65d335910a4add147cd15e35d3505afd (patch)
treec74c7246273506642e2514648e5b9cc58b4ccf74 /comphelper
parenteb4fb12fdbe14b929cf8fe5d5785fcfae8d96fa4 (diff)
comphelper,connectivity: prefer passing OUString by reference
Change-Id: I19b2613918ec62ee39bb3e447f3587c5dba1e36a
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/container/embeddedobjectcontainer.cxx4
-rw-r--r--comphelper/source/xml/ofopxmlhelper.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx
index d296c9fa10c2..9ccd567235eb 100644
--- a/comphelper/source/container/embeddedobjectcontainer.cxx
+++ b/comphelper/source/container/embeddedobjectcontainer.cxx
@@ -52,7 +52,7 @@ namespace comphelper
struct hashObjectName_Impl
{
- size_t operator()(const OUString Str) const
+ size_t operator()(const OUString & Str) const
{
return (size_t)Str.hashCode();
}
@@ -60,7 +60,7 @@ struct hashObjectName_Impl
struct eqObjectName_Impl
{
- bool operator()(const OUString Str1, const OUString Str2) const
+ bool operator()(const OUString & Str1, const OUString & Str2) const
{
return ( Str1 == Str2 );
}
diff --git a/comphelper/source/xml/ofopxmlhelper.cxx b/comphelper/source/xml/ofopxmlhelper.cxx
index b20d4f2a422b..8a78fcb05a83 100644
--- a/comphelper/source/xml/ofopxmlhelper.cxx
+++ b/comphelper/source/xml/ofopxmlhelper.cxx
@@ -38,7 +38,7 @@ using namespace ::com::sun::star;
namespace comphelper {
-uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OFOPXMLHelper::ReadRelationsInfoSequence( const uno::Reference< io::XInputStream >& xInStream, const OUString aStreamName, const uno::Reference< uno::XComponentContext > xContext )
+uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OFOPXMLHelper::ReadRelationsInfoSequence( const uno::Reference< io::XInputStream >& xInStream, const OUString & aStreamName, const uno::Reference< uno::XComponentContext > xContext )
throw( uno::Exception )
{
OUString aStringID = "_rels/";