summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-01-09 09:20:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-01-09 11:10:33 +0100
commit88b88db488396258c0cfe1614e4b540eeb988ecd (patch)
treea2c9de361397ac41436fd5314e092609422ff3e5 /lotuswordpro
parentabde84d77124e98c55cac4e7399a420f3d65fea5 (diff)
ofz#19961 Invalid-enum-value
Change-Id: I112d5cd9aa8e7169f7ff7e55ba93487c3d904b97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86469 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpparastyle.cxx2
-rw-r--r--lotuswordpro/source/filter/lwptabrack.hxx21
2 files changed, 9 insertions, 14 deletions
diff --git a/lotuswordpro/source/filter/lwpparastyle.cxx b/lotuswordpro/source/filter/lwpparastyle.cxx
index e52909e3b361..3ae8b69e578f 100644
--- a/lotuswordpro/source/filter/lwpparastyle.cxx
+++ b/lotuswordpro/source/filter/lwpparastyle.cxx
@@ -621,7 +621,7 @@ void LwpParaStyle::ApplyTab(XFParaStyle *pParaStyle, LwpTabOverride *pTabOverRid
//get leader type
sal_Unicode cLeader = 0x00;
- LwpTab::LeaderType leader= pTab->GetLeaderType();
+ auto leader= pTab->GetLeaderType();
switch(leader)
{
case LwpTab::TL_NONE:
diff --git a/lotuswordpro/source/filter/lwptabrack.hxx b/lotuswordpro/source/filter/lwptabrack.hxx
index 1f038e61ffd7..7157e08abbd1 100644
--- a/lotuswordpro/source/filter/lwptabrack.hxx
+++ b/lotuswordpro/source/filter/lwptabrack.hxx
@@ -100,9 +100,14 @@ public:
{
return m_nType;
}
- inline LeaderType GetLeaderType() const;
- inline sal_uInt16 GetAlignChar() const;
-
+ sal_uInt8 GetLeaderType() const
+ {
+ return m_nLeader;
+ }
+ sal_uInt16 GetAlignChar() const
+ {
+ return m_nAlignChar;
+ }
private:
sal_uInt32 m_nX;
sal_uInt8 m_nType;
@@ -116,16 +121,6 @@ inline sal_uInt32 LwpTab::GetPosition() const
return m_nX;
}
-inline LwpTab::LeaderType LwpTab::GetLeaderType() const
-{
- return static_cast<LwpTab::LeaderType>(m_nLeader);
-}
-
-inline sal_uInt16 LwpTab::GetAlignChar() const
-{
- return m_nAlignChar;
-}
-
class LwpTabRack : public LwpObject
{
public: