summaryrefslogtreecommitdiff
path: root/toolkit/source/awt
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/awt')
-rw-r--r--toolkit/source/awt/vclxprinter.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx
index effcdae4380e..ce94e6bb6af1 100644
--- a/toolkit/source/awt/vclxprinter.cxx
+++ b/toolkit/source/awt/vclxprinter.cxx
@@ -189,13 +189,10 @@ css::uno::Sequence< OUString > VCLXPrinterPropertySet::getFormDescriptions( )
for ( sal_uInt16 n = 0; n < nPaperBinCount; n++ )
{
// Format: <DisplayFormName;FormNameId;DisplayPaperBinName;PaperBinNameId;DisplayPaperName;PaperNameId>
- OUStringBuffer aDescr( "*;*;" );
- aDescr.append(GetPrinter()->GetPaperBinName( n ));
- aDescr.append(';');
- aDescr.append(static_cast<sal_Int32>(n));
- aDescr.append(";*;*");
+ OUString aDescr = "*;*;" + GetPrinter()->GetPaperBinName( n ) + ";" +
+ OUString::number(n) + ";*;*";
- aDescriptions.getArray()[n] = aDescr.makeStringAndClear();
+ aDescriptions.getArray()[n] = aDescr;
}
return aDescriptions;
}