diff options
author | panoskorovesis <panoskorovesis@outlook.com> | 2021-07-17 10:13:18 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-07-27 14:14:07 +0200 |
commit | a66dc788d92d9ef0ab6a5a0339f02df0c39b97fb (patch) | |
tree | 792c66369a492c0a11d66e30411c8ac174ae3846 /vcl | |
parent | d2e47f496da7871e2f714bd39e7dc0b7428752bc (diff) |
Add Handler for MetaAction Read
The handler separates MetaAction::Read from metaact.hxx
Read implementation is now in SvmReader.hxx In this case the
handler doesn't read anything. It creates and returns a MetaAction
Change-Id: I01b23bd836c88f07dc9adde90a7e2da322b832f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119539
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/svm/SvmReader.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vcl/source/filter/svm/SvmReader.cxx b/vcl/source/filter/svm/SvmReader.cxx index 875aaee733df..a078c5694b1b 100644 --- a/vcl/source/filter/svm/SvmReader.cxx +++ b/vcl/source/filter/svm/SvmReader.cxx @@ -158,7 +158,7 @@ rtl::Reference<MetaAction> SvmReader::MetaActionHandler(ImplMetaReadData* pData) switch (nType) { case MetaActionType::NONE: - pAction = new MetaAction; + return DefaultHandler(); break; case MetaActionType::PIXEL: return PixelHandler(); @@ -327,9 +327,6 @@ rtl::Reference<MetaAction> SvmReader::MetaActionHandler(ImplMetaReadData* pData) break; } - if (pAction) - pAction->Read(mrStream, pData); - return pAction; } @@ -1440,4 +1437,11 @@ rtl::Reference<MetaAction> SvmReader::TextLanguageHandler() return pAction; } + +rtl::Reference<MetaAction> SvmReader::DefaultHandler() +{ + auto pAction = new MetaAction(); + + return pAction; +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |