From e7b6205bcf127d8afab8dfd015fef7573b296a22 Mon Sep 17 00:00:00 2001 From: panoskorovesis Date: Thu, 5 Aug 2021 17:37:13 +0300 Subject: Replace GDIMetaFile::Write and WriteGDIMetaFile with SvmWriter::Write MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- writerperfect/source/writer/EPUBExportFilter.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'writerperfect/source') 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 #include #include +#include #include #include @@ -158,7 +159,8 @@ void EPUBExportFilter::CreateMetafiles(std::vector& rPageM rGDIMetaFile.SetPrefSize(aLogic); SvMemoryStream aMemoryStream; - rGDIMetaFile.Write(aMemoryStream); + SvmWriter aWriter(aMemoryStream); + aWriter.Write(rGDIMetaFile); uno::Sequence aSequence(static_cast(aMemoryStream.GetData()), aMemoryStream.Tell()); -- cgit