summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorpanoskorovesis <panoskorovesis@outlook.com>2021-07-15 10:44:36 +0300
committerMiklos Vajna <vmiklos@collabora.com>2021-07-19 10:03:28 +0200
commitce0f7ae74e64d496f689c263a22776c5efc5ab3b (patch)
tree4d2d75c9be5cf40b8cee315dedbe02d9c0fe7100 /vcl
parent4c525a0ec8734c09474395f887e7f58d0410605f (diff)
Add Handler for Pop Read
The handler separates MetaPopAction::Read from metaact.hxx Read implementation is now in SvmReader Change-Id: I831ac97d29554e90773a939dcfedb383974e2495 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118981 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/svm/SvmReader.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/vcl/source/filter/svm/SvmReader.cxx b/vcl/source/filter/svm/SvmReader.cxx
index 0a8a4ebf2dfd..d4d5953959e6 100644
--- a/vcl/source/filter/svm/SvmReader.cxx
+++ b/vcl/source/filter/svm/SvmReader.cxx
@@ -293,7 +293,7 @@ rtl::Reference<MetaAction> SvmReader::MetaActionHandler(ImplMetaReadData* pData)
return PushHandler();
break;
case MetaActionType::POP:
- pAction = new MetaPopAction;
+ return PopHandler();
break;
case MetaActionType::RASTEROP:
pAction = new MetaRasterOpAction;
@@ -1273,4 +1273,13 @@ rtl::Reference<MetaAction> SvmReader::PushHandler()
return pAction;
}
+
+rtl::Reference<MetaAction> SvmReader::PopHandler()
+{
+ auto pAction = new MetaPopAction();
+
+ VersionCompatRead aCompat(mrStream);
+
+ return pAction;
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */