diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-03 17:07:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-03 21:59:25 +0100 |
commit | 80fd15abe368627c7d5f385e178d94ee67eaafe6 (patch) | |
tree | 352d34cf1d7db91cec6fa9fc8bb1e527c35ab37b /lotuswordpro | |
parent | 894efac8fd6f49d272db340d6f132acd262f93bc (diff) |
ofz#19786 Invalid-enum-value
Change-Id: I9bca61f728877b6f7a741e9d89ad2f7f5ae0eb61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86197
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpparastyle.cxx | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwptabrack.hxx | 10 |
2 files changed, 5 insertions, 7 deletions
diff --git a/lotuswordpro/source/filter/lwpparastyle.cxx b/lotuswordpro/source/filter/lwpparastyle.cxx index f7fc6979746d..e52909e3b361 100644 --- a/lotuswordpro/source/filter/lwpparastyle.cxx +++ b/lotuswordpro/source/filter/lwpparastyle.cxx @@ -597,7 +597,7 @@ void LwpParaStyle::ApplyTab(XFParaStyle *pParaStyle, LwpTabOverride *pTabOverRid return; enumXFTab eType = enumXFTabNone; - LwpTab::TabType type = pTab->GetTabType(); + sal_uInt32 type = pTab->GetTabType(); switch(type) { case LwpTab::TT_LEFT: diff --git a/lotuswordpro/source/filter/lwptabrack.hxx b/lotuswordpro/source/filter/lwptabrack.hxx index d29aaada28f9..1f038e61ffd7 100644 --- a/lotuswordpro/source/filter/lwptabrack.hxx +++ b/lotuswordpro/source/filter/lwptabrack.hxx @@ -96,7 +96,10 @@ public: public: void Read(LwpObjectStream *pStrm); inline sal_uInt32 GetPosition() const; - inline TabType GetTabType() const; + sal_uInt8 GetTabType() const + { + return m_nType; + } inline LeaderType GetLeaderType() const; inline sal_uInt16 GetAlignChar() const; @@ -113,11 +116,6 @@ inline sal_uInt32 LwpTab::GetPosition() const return m_nX; } -inline LwpTab::TabType LwpTab::GetTabType() const -{ - return static_cast<LwpTab::TabType>(m_nType); -} - inline LwpTab::LeaderType LwpTab::GetLeaderType() const { return static_cast<LwpTab::LeaderType>(m_nLeader); |