lotuswordpro/source/filter/lwpparastyle.cxx | 2 +- lotuswordpro/source/filter/lwptabrack.hxx | 21 ++++++++------------- 2 files changed, 9 insertions(+), 14 deletions(-)
New commits: commit 88b88db488396258c0cfe1614e4b540eeb988ecd Author: Caolán McNamara <[email protected]> AuthorDate: Thu Jan 9 09:20:22 2020 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Jan 9 11:10:33 2020 +0100 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 <[email protected]> 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: _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
