tools/source/generic/config.cxx | 4 +--- tools/source/stream/strmunx.cxx | 19 ++++--------------- 2 files changed, 5 insertions(+), 18 deletions(-)
New commits: commit f0c38c67e4a5d1b1fa58873f2db88310d8bf295a Author: Sedat Ak <sedat.ak...@gmail.com> Date: Sat Jan 30 16:49:06 2016 +0200 tdf#57950 Replace chained O(U)StringBuffer::append() with operator+ Change-Id: I956832e69f25ddc25523ffc1c0f289aecf930f68 Reviewed-on: https://gerrit.libreoffice.org/21927 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: jan iversen <j...@documentfoundation.org> diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx index 40fc492..621a545 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 16bfd44..c47b7eb 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits