summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorpanoskorovesis <panoskorovesis@outlook.com>2021-08-05 17:37:13 +0300
committerTomaž Vajngerl <quikee@gmail.com>2021-08-17 04:40:46 +0200
commite7b6205bcf127d8afab8dfd015fef7573b296a22 (patch)
treec73551370ada11d7e208afe550bd4a922377d889 /writerperfect
parentdd3ab0fd737ff84657ff34eebafe2628f489e5a1 (diff)
Replace GDIMetaFile::Write and WriteGDIMetaFile with SvmWriter::Write
Use the new write functionality. This change also sets SvmWriter::Write second argument as const, as it's value does not change Change-Id: I1620756542a0bc54b5f8fc7ce3f57d0243a2ee55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120408 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/writer/EPUBExportFilter.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/writerperfect/source/writer/EPUBExportFilter.cxx b/writerperfect/source/writer/EPUBExportFilter.cxx
index d944b080ddd3..129d2941c795 100644
--- a/writerperfect/source/writer/EPUBExportFilter.cxx
+++ b/writerperfect/source/writer/EPUBExportFilter.cxx
@@ -24,6 +24,7 @@
#include <comphelper/propertysetinfo.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <svtools/DocumentToGraphicRenderer.hxx>
+#include <vcl/filter/SvmWriter.hxx>
#include <vcl/gdimtf.hxx>
#include <tools/stream.hxx>
@@ -158,7 +159,8 @@ void EPUBExportFilter::CreateMetafiles(std::vector<exp::FixedLayoutPage>& rPageM
rGDIMetaFile.SetPrefSize(aLogic);
SvMemoryStream aMemoryStream;
- rGDIMetaFile.Write(aMemoryStream);
+ SvmWriter aWriter(aMemoryStream);
+ aWriter.Write(rGDIMetaFile);
uno::Sequence<sal_Int8> aSequence(static_cast<const sal_Int8*>(aMemoryStream.GetData()),
aMemoryStream.Tell());