summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-04 23:53:38 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-12-06 13:35:18 +0100
commitdd23ac402f58e2c1596e68de91efbd81ee6f623b (patch)
tree55eb23afa50a5b89432fe7fd1f0ab2266cb592e2 /sal
parentsupport for fast string operator+ in operator+=/append (diff)
downloadcore-dd23ac402f58e2c1596e68de91efbd81ee6f623b.tar.gz
core-dd23ac402f58e2c1596e68de91efbd81ee6f623b.zip
pass string by reference instead of by value
Should not make that big difference, but still. Should not be BIC in practice because it's inline. Change-Id: I53ec7dec46356fb63b0f6f73579cff1ca8495fbf
Diffstat (limited to 'sal')
-rw-r--r--sal/inc/rtl/strbuf.hxx2
-rw-r--r--sal/inc/rtl/ustrbuf.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/inc/rtl/strbuf.hxx b/sal/inc/rtl/strbuf.hxx
index 286a862d032b..90204f0fca18 100644
--- a/sal/inc/rtl/strbuf.hxx
+++ b/sal/inc/rtl/strbuf.hxx
@@ -143,7 +143,7 @@ public:
@param value the initial string value.
*/
- OStringBuffer(OString value)
+ OStringBuffer(const OString& value)
: pData(NULL)
, nCapacity( value.getLength() + 16 )
{
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx
index 79af254983aa..9549414d44d4 100644
--- a/sal/inc/rtl/ustrbuf.hxx
+++ b/sal/inc/rtl/ustrbuf.hxx
@@ -138,7 +138,7 @@ public:
@param value the initial contents of the buffer.
*/
- OUStringBuffer(OUString value)
+ OUStringBuffer(const OUString& value)
: pData(NULL)
, nCapacity( value.getLength() + 16 )
{