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>
This commit is contained in:
Arnold Dumas
2016-02-14 00:59:35 +01:00
committed by Noel Grandin
parent f48b789e1b
commit 53bf3ea58e
3 changed files with 7 additions and 11 deletions

View File

@@ -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))
{

View File

@@ -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 ) );

View File

@@ -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();