summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/filter/ipdf/pdfdocument.cxx6
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx16
2 files changed, 10 insertions, 12 deletions
diff --git a/vcl/source/filter/ipdf/pdfdocument.cxx b/vcl/source/filter/ipdf/pdfdocument.cxx
index 1aec86c9ee2f..02bde3fcaedb 100644
--- a/vcl/source/filter/ipdf/pdfdocument.cxx
+++ b/vcl/source/filter/ipdf/pdfdocument.cxx
@@ -836,10 +836,8 @@ bool PDFDocument::Sign(const uno::Reference<security::XCertificate>& xCertificat
= nFileEnd - (nSignatureContentOffset + MAX_SIGNATURE_CONTENT_LENGTH + 1);
// Write the length to the buffer.
m_aEditBuffer.Seek(nSignatureLastByteRangeOffset);
- OStringBuffer aByteRangeBuffer;
- aByteRangeBuffer.append(nLastByteRangeLength);
- aByteRangeBuffer.append(" ]");
- m_aEditBuffer.WriteOString(aByteRangeBuffer.toString());
+ OString aByteRangeBuffer = OString::number(nLastByteRangeLength) + " ]";
+ m_aEditBuffer.WriteOString(aByteRangeBuffer);
// Create the PKCS#7 object.
css::uno::Sequence<sal_Int8> aDerEncoded = xCertificate->getEncoded();
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 0048cc548d54..47d90025172a 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -794,11 +794,11 @@ void PDFWriterImpl::PDFPage::endStream()
// emit stream length object
if( ! m_pWriter->updateObject( m_nStreamLengthObject ) )
return;
- OStringBuffer aLine;
- aLine.append( m_nStreamLengthObject );
- aLine.append( " 0 obj\n" );
- aLine.append( static_cast<sal_Int64>(nEndStreamPos-m_nBeginStreamPos) );
- aLine.append( "\nendobj\n\n" );
+ OString aLine =
+ OString::number( m_nStreamLengthObject ) +
+ " 0 obj\n" +
+ OString::number( static_cast<sal_Int64>(nEndStreamPos-m_nBeginStreamPos) ) +
+ "\nendobj\n\n";
m_pWriter->writeBuffer( aLine.getStr(), aLine.getLength() );
}
@@ -2044,9 +2044,9 @@ OString PDFWriterImpl::emitStructureAttributes( PDFStructureElement& i_rEle )
SAL_INFO("vcl.pdfwriter", "unresolved link id " << nLink << " for Link structure");
if (g_bDebugDisableCompression)
{
- OStringBuffer aLine( "unresolved link id " );
- aLine.append( nLink );
- aLine.append( " for Link structure" );
+ OString aLine = "unresolved link id " +
+ OString::number( nLink ) +
+ " for Link structure";
emitComment( aLine.getStr() );
}
}