summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-12-09 17:06:18 +0100
committerMichael Stahl <mstahl@redhat.com>2015-12-15 17:44:35 +0100
commitea50cb70efed40d1ed2ca6806c626ed5fdb71351 (patch)
treeb2c257390982d1efa2b3023042eb88f1e17535a6 /sw/source
parenta7762b56c0f0605d090ed95069db16c6641f769e (diff)
sw: replace OUStringBuffer
Change-Id: Iebb4ac4a7307bb8482ca735096503da03448fee7
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/ww8/docxexport.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx
index 3e77d9ae4c68..edc3280afc0e 100644
--- a/sw/source/filter/ww8/docxexport.cxx
+++ b/sw/source/filter/ww8/docxexport.cxx
@@ -474,11 +474,8 @@ OString DocxExport::WriteOLEObject(SwOLEObj& rObject, OUString const& rProgID)
lcl_ConvertProgID(rProgID, sMediaType, sRelationType, sFileExtension);
OUString sFileName = "embeddings/oleObject" + OUString::number( ++m_nOLEObjects ) + "." + sFileExtension;
- uno::Reference< io::XOutputStream > xOutStream = GetFilter().openFragmentStream( OUStringBuffer()
- .append( "word/" )
- .append( sFileName )
- .makeStringAndClear(),
- sMediaType );
+ uno::Reference<io::XOutputStream> const xOutStream =
+ GetFilter().openFragmentStream("word/" + sFileName, sMediaType);
OUString sId;
if( lcl_CopyStream( xInStream, xOutStream ) )