diff options
author | Arnold Dumas <arnold@dumas.at> | 2016-02-14 00:59:35 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-15 07:38:21 +0000 |
commit | 53bf3ea58e0f4f9f4399a44bfc9ddecc71cb54c7 (patch) | |
tree | 4494dab5e2cdd2b56af5ad851866128315532f5e | |
parent | f48b789e1b985f65be2c15e508202ccf9ec05102 (diff) |
tdf#57950: Replace chained O(U)StringBuffer::append() with operator+
Change-Id: Ic76cf0130ebec4cf723b83d82f59ae45bfcb3ea1
Reviewed-on: https://gerrit.libreoffice.org/22350
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | cppu/source/uno/lbenv.cxx | 5 | ||||
-rw-r--r-- | cui/source/options/optjava.cxx | 11 | ||||
-rw-r--r-- | dbaccess/source/ext/macromigration/migrationengine.cxx | 2 |
3 files changed, 7 insertions, 11 deletions
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx index b9e964dadbf8..c5cdaa55e120 100644 --- a/cppu/source/uno/lbenv.cxx +++ b/cppu/source/uno/lbenv.cxx @@ -1108,10 +1108,7 @@ static uno_Environment * initDefaultEnvironment( else { // late init with some code from matching uno language binding - ::rtl::OUStringBuffer aLibName( 16 ); - aLibName.append( envTypeName ); - aLibName.append( "_uno" ); - OUString aStr( aLibName.makeStringAndClear() ); + OUString aStr( envTypeName + "_uno" ); if (!loadEnv(aStr, pEnv)) { diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index 4bcdeabc3552..3f178acc6962 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -167,12 +167,11 @@ SvxJavaOptionsPage::SvxJavaOptionsPage( vcl::Window* pParent, const SfxItemSet& m_pJavaList->SvSimpleTable::SetTabs( aStaticTabs ); - OUStringBuffer sHeader; - sHeader.append("\t").append(get<FixedText>("vendor")->GetText()) - .append("\t").append(get<FixedText>("version")->GetText()) - .append("\t").append(get<FixedText>("features")->GetText()) - .append("\t"); - m_pJavaList->InsertHeaderEntry(sHeader.makeStringAndClear(), HEADERBAR_APPEND, HeaderBarItemBits::LEFT); + OUString sHeader ( "\t" + get<FixedText>("vendor")->GetText() + + "\t" + get<FixedText>("version")->GetText() + + "\t" + get<FixedText>("features")->GetText() + + "\t" ); + m_pJavaList->InsertHeaderEntry(sHeader, HEADERBAR_APPEND, HeaderBarItemBits::LEFT); m_pJavaList->setColSizes(); m_pJavaEnableCB->SetClickHdl( LINK( this, SvxJavaOptionsPage, EnableHdl_Impl ) ); diff --git a/dbaccess/source/ext/macromigration/migrationengine.cxx b/dbaccess/source/ext/macromigration/migrationengine.cxx index 2aa941cc7e4c..94dd12c650a1 100644 --- a/dbaccess/source/ext/macromigration/migrationengine.cxx +++ b/dbaccess/source/ext/macromigration/migrationengine.cxx @@ -991,7 +991,7 @@ namespace dbmm { const OUString sHierarhicalBase( _rContainerLoc.isEmpty() ? OUString() : - OUStringBuffer( _rContainerLoc ).append( "/" ).makeStringAndClear()); + OUString( _rContainerLoc + "/" ) ); Sequence< OUString > aElementNames( _rxContainer->getElementNames() ); for ( const OUString* elementName = aElementNames.getConstArray(); |