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>
This commit is contained in:
committed by
Michael Stahl
parent
7939e29b41
commit
c7660cc543
@@ -96,7 +96,7 @@ void ScFilterOptionsMgr::Init()
|
|||||||
rQueryData.nRow2,
|
rQueryData.nRow2,
|
||||||
pViewData->GetTabNo() ) );
|
pViewData->GetTabNo() ) );
|
||||||
ScDBCollection* pDBColl = pDoc->GetDBCollection();
|
ScDBCollection* pDBColl = pDoc->GetDBCollection();
|
||||||
OUStringBuffer theDbArea;
|
OUString theDbArea;
|
||||||
OUString theDbName(STR_DB_LOCAL_NONAME);
|
OUString theDbName(STR_DB_LOCAL_NONAME);
|
||||||
const formula::FormulaGrammar::AddressConvention eConv = pDoc->GetAddressConvention();
|
const formula::FormulaGrammar::AddressConvention eConv = pDoc->GetAddressConvention();
|
||||||
|
|
||||||
@@ -149,9 +149,9 @@ void ScFilterOptionsMgr::Init()
|
|||||||
|
|
||||||
if ( theDbName != STR_DB_LOCAL_NONAME )
|
if ( theDbName != STR_DB_LOCAL_NONAME )
|
||||||
{
|
{
|
||||||
theDbArea.append(" (");
|
theDbArea += " (" + theDbName + ")";
|
||||||
theDbArea.append(theDbName).append(')');
|
|
||||||
pFtDbArea->SetText( theDbArea.makeStringAndClear() );
|
pFtDbArea->SetText( theDbArea );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -246,22 +246,20 @@ std::vector<KeyEvent> generate_key_events_from_keycode(const OUString& rStr)
|
|||||||
|
|
||||||
OUString to_string(const Point& rPos)
|
OUString to_string(const Point& rPos)
|
||||||
{
|
{
|
||||||
OUStringBuffer aBuffer;
|
OUString sStr = OUString::number(rPos.X())
|
||||||
aBuffer.append(OUString::number(rPos.X()));
|
+ "x"
|
||||||
aBuffer.append("x");
|
+ OUString::number(rPos.Y());
|
||||||
aBuffer.append(OUString::number(rPos.Y()));
|
|
||||||
|
|
||||||
return aBuffer.makeStringAndClear();
|
return sStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
OUString to_string(const Size& rSize)
|
OUString to_string(const Size& rSize)
|
||||||
{
|
{
|
||||||
OUStringBuffer aBuffer;
|
OUString sStr = OUString::number(rSize.Width())
|
||||||
aBuffer.append(rSize.Width());
|
+ "x"
|
||||||
aBuffer.append("x");
|
+ OUString::number(rSize.Height());
|
||||||
aBuffer.append(rSize.Height());
|
|
||||||
|
|
||||||
return aBuffer.makeStringAndClear();
|
return sStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user