diff options
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/rdf/librdf_repository.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx index 7b4461aca83a..d6b0a41e029d 100644 --- a/unoxml/source/rdf/librdf_repository.cxx +++ b/unoxml/source/rdf/librdf_repository.cxx @@ -1091,10 +1091,10 @@ void addChaffWhenEncryptedStorage(const uno::Reference< io::XOutputStream > &rSt reinterpret_cast<sal_Int8*>(pBuffer), preamblelen); rStream->writeBytes(buf); - OStringBuffer aComment; - aComment.append("<!--"); - aComment.append(comphelper::xml::makeXMLChaff()); - aComment.append("-->"); + OString aComment = + "<!--" + + comphelper::xml::makeXMLChaff() + + "-->"; buf = uno::Sequence<sal_Int8>( reinterpret_cast<const sal_Int8*>(aComment.getStr()), aComment.getLength()); |