diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-12-04 23:53:38 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-12-06 13:35:18 +0100 |
commit | dd23ac402f58e2c1596e68de91efbd81ee6f623b (patch) | |
tree | 55eb23afa50a5b89432fe7fd1f0ab2266cb592e2 | |
parent | 88c00598b2a0bae1bdfe88d4300afec2512183d8 (diff) |
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
-rw-r--r-- | sal/inc/rtl/strbuf.hxx | 2 | ||||
-rw-r--r-- | sal/inc/rtl/ustrbuf.hxx | 2 |
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 ) { |