diff options
author | Sedat Ak <sedat.ak.bm@gmail.com> | 2016-01-30 16:49:06 +0200 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-03-02 08:12:20 +0000 |
commit | f0c38c67e4a5d1b1fa58873f2db88310d8bf295a (patch) | |
tree | 7fa10ef9710ee2aee61884d0eaa4134b1df7f1ea /tools | |
parent | ad0aec407d09711f58acbacbf6296ca53b760725 (diff) |
tdf#57950 Replace chained O(U)StringBuffer::append() with operator+
Change-Id: I956832e69f25ddc25523ffc1c0f289aecf930f68
Reviewed-on: https://gerrit.libreoffice.org/21927
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/config.cxx | 4 | ||||
-rw-r--r-- | tools/source/stream/strmunx.cxx | 19 |
2 files changed, 5 insertions, 18 deletions
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx index 40fc492ec605..621a5451b5d8 100644 --- a/tools/source/generic/config.cxx +++ b/tools/source/generic/config.cxx @@ -664,9 +664,7 @@ Config::Config( const OUString& rFileName ) mbPersistence = true; #ifdef DBG_UTIL - OStringBuffer aTraceStr("Config::Config( "); - aTraceStr.append(OUStringToOString(maFileName, RTL_TEXTENCODING_UTF8)); - aTraceStr.append(" )"); + OString aTraceStr("Config::Config( " + OUStringToOString(maFileName, RTL_TEXTENCODING_UTF8) + " )"); OSL_TRACE("%s", aTraceStr.getStr()); #endif } diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx index 16bfd443cdf8..c47b7ebd5b2b 100644 --- a/tools/source/stream/strmunx.cxx +++ b/tools/source/stream/strmunx.cxx @@ -308,11 +308,7 @@ SvFileStream::~SvFileStream() sal_Size SvFileStream::GetData( void* pData, sal_Size nSize ) { #ifdef DBG_UTIL - OStringBuffer aTraceStr("SvFileStream::GetData(): "); - aTraceStr.append(static_cast<sal_Int64>(nSize)); - aTraceStr.append(" Bytes from "); - aTraceStr.append(OUStringToOString(aFilename, - osl_getThreadTextEncoding())); + OString aTraceStr("SvFileStream::GetData(): " + OString::number(static_cast<sal_Int64>(nSize)) + " Bytes from " + OUStringToOString(aFilename, osl_getThreadTextEncoding())); OSL_TRACE("%s", aTraceStr.getStr()); #endif @@ -332,11 +328,7 @@ sal_Size SvFileStream::GetData( void* pData, sal_Size nSize ) sal_Size SvFileStream::PutData( const void* pData, sal_Size nSize ) { #ifdef DBG_UTIL - OStringBuffer aTraceStr("SvFileStream::PutData(): "); - aTraceStr.append(static_cast<sal_Int64>(nSize)); - aTraceStr.append(" Bytes to "); - aTraceStr.append(OUStringToOString(aFilename, - osl_getThreadTextEncoding())); + OString aTraceStr("SvFileStream::PutData(): " + OString::number(static_cast<sal_Int64>(nSize)) + " Bytes to " + OUStringToOString(aFilename, osl_getThreadTextEncoding())); OSL_TRACE("%s", aTraceStr.getStr()); #endif @@ -470,8 +462,7 @@ void SvFileStream::Open( const OUString& rFilename, StreamMode nOpenMode ) #ifdef DBG_UTIL OString aLocalFilename(OUStringToOString(aFilename, osl_getThreadTextEncoding())); - OStringBuffer aTraceStr("SvFileStream::Open(): "); - aTraceStr.append(aLocalFilename); + OString aTraceStr("SvFileStream::Open(): " + aLocalFilename); OSL_TRACE( "%s", aTraceStr.getStr() ); #endif @@ -568,9 +559,7 @@ void SvFileStream::Close() if ( IsOpen() ) { #ifdef DBG_UTIL - OStringBuffer aTraceStr("SvFileStream::Close(): "); - aTraceStr.append(OUStringToOString(aFilename, - osl_getThreadTextEncoding())); + OString aTraceStr("SvFileStream::Close(): " + OUStringToOString(aFilename, osl_getThreadTextEncoding())); OSL_TRACE("%s", aTraceStr.getStr()); #endif |