Kaydet (Commit) 6d766109 authored tarafından Matteo Casalin's avatar Matteo Casalin

Use optimized OUString concatenation and avoid temporary

Change-Id: I25cae27d9822a323167a8b202acc2bde660abc58
üst 2d94bfba
......@@ -282,7 +282,6 @@ void ScPrintAreasDlg::Impl_Reset()
// printing area
aStrRange.clear();
OUString aOne;
const formula::FormulaGrammar::AddressConvention eConv = pDoc->GetAddressConvention();
const sal_Unicode sep = ScCompiler::GetNativeSymbolChar(ocSep);
sal_uInt16 nRangeCount = pDoc->GetPrintRangeCount( nCurTab );
......@@ -293,8 +292,7 @@ void ScPrintAreasDlg::Impl_Reset()
{
if ( !aStrRange.isEmpty() )
aStrRange += OUStringLiteral1(sep);
aOne = pPrintRange->Format(ScRefFlags::RANGE_ABS, pDoc, eConv);
aStrRange += aOne;
aStrRange += pPrintRange->Format(ScRefFlags::RANGE_ABS, pDoc, eConv);
}
}
pEdPrintArea->SetText( aStrRange );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment