diff options
author | panoskorovesis <panoskorovesis@outlook.com> | 2021-06-30 09:57:27 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-07-05 08:55:09 +0200 |
commit | 960d8c227bf39c66b5366f6024635ee317c6b314 (patch) | |
tree | d6b5c4a6d1eef110e64662d9a284746453167b71 /vcl/qa/cppunit/svm/svmtest.cxx | |
parent | 7c1bad415ae48635dc67041c413bb7b76a530c22 (diff) |
Create Separate SvmReader class
Add a new class to handle MetaAcion.Read() at
vcl/source/filter/svm/
Modified svmtest.cxx to use the new Read() method.
Change-Id: I617cb8fe14704e1303c866261ceb695238f04234
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118143
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/qa/cppunit/svm/svmtest.cxx')
-rw-r--r-- | vcl/qa/cppunit/svm/svmtest.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/svm/svmtest.cxx b/vcl/qa/cppunit/svm/svmtest.cxx index 0f2523ea3c46..7a1f4b8f0dba 100644 --- a/vcl/qa/cppunit/svm/svmtest.cxx +++ b/vcl/qa/cppunit/svm/svmtest.cxx @@ -22,6 +22,7 @@ #include <vcl/pngwrite.hxx> #include <tools/fract.hxx> #include <vcl/metaact.hxx> +#include <vcl/filter/SvmReader.hxx> #include <salhelper/simplereferenceobject.hxx> #include <bitmap/BitmapWriteAccess.hxx> @@ -328,7 +329,9 @@ GDIMetaFile SvmTest::writeAndReadStream(GDIMetaFile& rMetaFile, std::u16string_v aStream.Seek(STREAM_SEEK_TO_BEGIN); GDIMetaFile aResultMetafile; - aResultMetafile.Read(aStream); + SvmReader aReader(aStream); + aResultMetafile.Clear(); + aReader.Read(aResultMetafile); return aResultMetafile; } |