diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-31 13:13:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-01 21:39:28 +0200 |
commit | 28580110807a38e3ba6f8385f22871b8dfe0a910 (patch) | |
tree | 33ff5f3c25316926f14ffbb837025090465c2a2a /io | |
parent | 58e266ae808dbf3e157b38eb2c8f24774131e0f8 (diff) |
add operator+=(OUStringBuffer) method to OUString
to reduce needless object creation and copying some more
And fix what looks like a bug in CSS hex color parsing at line
609 in sw/../parcss1.cxx that has been there since
commit 7b0b5cdfeed656b279bc32cd929630d5fc25878b "initial import"
Change-Id: Ibad42b23721a56493bd1edcd7165e6104494a5c3
Reviewed-on: https://gerrit.libreoffice.org/58357
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'io')
-rw-r--r-- | io/source/acceptor/acc_socket.cxx | 2 | ||||
-rw-r--r-- | io/source/connector/ctr_socket.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx index c8e85cd33185..b106e8b11526 100644 --- a/io/source/acceptor/acc_socket.cxx +++ b/io/source/acceptor/acc_socket.cxx @@ -170,7 +170,7 @@ namespace io_acceptor { buf.append( ",localHost=" ); buf.append( m_socket.getLocalHost() ); - m_sDescription += buf.makeStringAndClear(); + m_sDescription += buf; } sal_Int32 SocketConnection::read( Sequence < sal_Int8 > & aReadBytes , sal_Int32 nBytesToRead ) diff --git a/io/source/connector/ctr_socket.cxx b/io/source/connector/ctr_socket.cxx index e5908d6e41ed..255c2f0af534 100644 --- a/io/source/connector/ctr_socket.cxx +++ b/io/source/connector/ctr_socket.cxx @@ -113,7 +113,7 @@ namespace stoc_connector { buf.append( ",localHost=" ); buf.append( m_socket.getLocalHost( ) ); - m_sDescription += buf.makeStringAndClear(); + m_sDescription += buf; } sal_Int32 SocketConnection::read( Sequence < sal_Int8 > & aReadBytes , sal_Int32 nBytesToRead ) |