Kaydet (Commit) dd23ac40 authored tarafından Luboš Luňák's avatar Luboš Luňák

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
üst 88c00598
...@@ -143,7 +143,7 @@ public: ...@@ -143,7 +143,7 @@ public:
@param value the initial string value. @param value the initial string value.
*/ */
OStringBuffer(OString value) OStringBuffer(const OString& value)
: pData(NULL) : pData(NULL)
, nCapacity( value.getLength() + 16 ) , nCapacity( value.getLength() + 16 )
{ {
......
...@@ -138,7 +138,7 @@ public: ...@@ -138,7 +138,7 @@ public:
@param value the initial contents of the buffer. @param value the initial contents of the buffer.
*/ */
OUStringBuffer(OUString value) OUStringBuffer(const OUString& value)
: pData(NULL) : pData(NULL)
, nCapacity( value.getLength() + 16 ) , nCapacity( value.getLength() + 16 )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment