summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorFurkan Ahmet Kara <furkanahmetkara.fk@gmail.com>2017-10-21 23:36:44 +0300
committerMichael Stahl <mstahl@redhat.com>2017-10-30 11:37:14 +0100
commitc7660cc543903c26c30d22e70e42deab9573c94d (patch)
tree3ff5028b75082ca8830da25dd651c07056fd1c57 /sc
parent7939e29b4117733005f81960ca792b2629d63212 (diff)
tdf#112689 - Replace chained O(U)StringBuffer::append() with operator+
Change-Id: If0ed3929f8faab187327b90e63014720e287e501 Reviewed-on: https://gerrit.libreoffice.org/43681 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Muhammet Kara <muhammet.kara@pardus.org.tr> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dbgui/foptmgr.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/foptmgr.cxx b/sc/source/ui/dbgui/foptmgr.cxx
index b96c24b876ea..05c6bd062c1c 100644
--- a/sc/source/ui/dbgui/foptmgr.cxx
+++ b/sc/source/ui/dbgui/foptmgr.cxx
@@ -96,7 +96,7 @@ void ScFilterOptionsMgr::Init()
rQueryData.nRow2,
pViewData->GetTabNo() ) );
ScDBCollection* pDBColl = pDoc->GetDBCollection();
- OUStringBuffer theDbArea;
+ OUString theDbArea;
OUString theDbName(STR_DB_LOCAL_NONAME);
const formula::FormulaGrammar::AddressConvention eConv = pDoc->GetAddressConvention();
@@ -149,9 +149,9 @@ void ScFilterOptionsMgr::Init()
if ( theDbName != STR_DB_LOCAL_NONAME )
{
- theDbArea.append(" (");
- theDbArea.append(theDbName).append(')');
- pFtDbArea->SetText( theDbArea.makeStringAndClear() );
+ theDbArea += " (" + theDbName + ")";
+
+ pFtDbArea->SetText( theDbArea );
}
else
{