summaryrefslogtreecommitdiff
path: root/include/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-14 15:14:28 +0200
committerNoel Grandin <noel@peralex.com>2014-03-17 09:00:07 +0200
commitbd8ce8b959f6147a2175a8ce84fd212151ca05dc (patch)
treefef0085c85c2efd43b54e5dbf332a1b6d2f6bd71 /include/toolkit
parentd593f45886cbe6ee9d54af1cf84b11a9004efc61 (diff)
sal,toolkit,unotools: prefer passing OUString by reference
Change-Id: Ie62a59fd9ff3d6f6a34240fd562fbc91a143bf3a
Diffstat (limited to 'include/toolkit')
-rw-r--r--include/toolkit/controls/eventcontainer.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/toolkit/controls/eventcontainer.hxx b/include/toolkit/controls/eventcontainer.hxx
index ebdacdaea473..20f622219c29 100644
--- a/include/toolkit/controls/eventcontainer.hxx
+++ b/include/toolkit/controls/eventcontainer.hxx
@@ -36,7 +36,7 @@ namespace toolkit
// Hashtable to optimize
struct hashName_Impl
{
- size_t operator()(const OUString Str) const
+ size_t operator()(const OUString& Str) const
{
return (size_t)Str.hashCode();
}
@@ -44,7 +44,7 @@ struct hashName_Impl
struct eqName_Impl
{
- bool operator()(const OUString Str1, const OUString Str2) const
+ bool operator()(const OUString& Str1, const OUString& Str2) const
{
return ( Str1 == Str2 );
}