summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pdfobjectcopier.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/pdfobjectcopier.cxx')
-rw-r--r--vcl/source/gdi/pdfobjectcopier.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/vcl/source/gdi/pdfobjectcopier.cxx b/vcl/source/gdi/pdfobjectcopier.cxx
index 4c9228235cd3..e0e1599f384c 100644
--- a/vcl/source/gdi/pdfobjectcopier.cxx
+++ b/vcl/source/gdi/pdfobjectcopier.cxx
@@ -89,9 +89,7 @@ sal_Int32 PDFObjectCopier::copyExternalResource(SvMemoryStream& rDocBuffer,
SAL_INFO("vcl.pdfwriter", "PDFObjectCopier::copyExternalResource: " << rObject.GetObjectValue()
<< " -> " << nObject);
- OStringBuffer aLine;
- aLine.append(nObject);
- aLine.append(" 0 obj\n");
+ OStringBuffer aLine = OString::number(nObject) + " 0 obj\n";
if (rObject.GetDictionary())
{
@@ -104,9 +102,7 @@ sal_Int32 PDFObjectCopier::copyExternalResource(SvMemoryStream& rDocBuffer,
else
aLine.append(" ");
- aLine.append("/");
- aLine.append(rPair.first);
- aLine.append(" ");
+ aLine.append("/" + rPair.first + " ");
copyRecursively(aLine, *rPair.second, rDocBuffer, rCopiedResources);
}