From 358be80f65d335910a4add147cd15e35d3505afd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 14 Mar 2014 07:46:08 +0200 Subject: comphelper,connectivity: prefer passing OUString by reference Change-Id: I19b2613918ec62ee39bb3e447f3587c5dba1e36a --- comphelper/source/container/embeddedobjectcontainer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'comphelper/source/container') 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 ); } -- cgit