diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-06-29 15:56:07 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-06-29 21:09:20 +0200 |
commit | 07f03ee052484eccc04beb89071f402a17f0c516 (patch) | |
tree | 76597cae0e2fa4caf3ae86918cf7e2fb187c8619 /sw | |
parent | e73b10845e98f8423dc32c9d27840aba76dbcbcc (diff) |
Improved loplugin:redundantcast (const-qualified typedefs): sw
Change-Id: Ib99c4a8f9d90e23a3083c74e72044a2b705a409d
Reviewed-on: https://gerrit.libreoffice.org/56704
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/atrfrm.cxx | 8 | ||||
-rw-r--r-- | sw/source/core/txtnode/fmtatr2.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/unocore/unoportenum.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 09acf60b2c9e..a7324f78c9c0 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -1342,11 +1342,11 @@ bool SwFormatVertOrient::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const { case MID_VERTORIENT_ORIENT: { - rVal <<= static_cast<sal_Int16>(m_eOrient); + rVal <<= m_eOrient; } break; case MID_VERTORIENT_RELATION: - rVal <<= static_cast<sal_Int16>(m_eRelation); + rVal <<= m_eRelation; break; case MID_VERTORIENT_POSITION: rVal <<= static_cast<sal_Int32>(convertTwipToMm100(GetPos())); @@ -1436,11 +1436,11 @@ bool SwFormatHoriOrient::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const { case MID_HORIORIENT_ORIENT: { - rVal <<= static_cast<sal_Int16>(m_eOrient); + rVal <<= m_eOrient; } break; case MID_HORIORIENT_RELATION: - rVal <<= static_cast<sal_Int16>(m_eRelation); + rVal <<= m_eRelation; break; case MID_HORIORIENT_POSITION: rVal <<= static_cast<sal_Int32>(convertTwipToMm100(GetPos())); diff --git a/sw/source/core/txtnode/fmtatr2.cxx b/sw/source/core/txtnode/fmtatr2.cxx index f74696687558..3f980f8b34c2 100644 --- a/sw/source/core/txtnode/fmtatr2.cxx +++ b/sw/source/core/txtnode/fmtatr2.cxx @@ -459,7 +459,7 @@ bool SwFormatRuby::QueryValue( uno::Any& rVal, break; case MID_RUBY_POSITION: { - rVal <<= static_cast<sal_uInt16>(m_nPosition); + rVal <<= m_nPosition; } break; default: diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx index 208e708ccf90..99cca1905f61 100644 --- a/sw/source/core/unocore/unoportenum.cxx +++ b/sw/source/core/unocore/unoportenum.cxx @@ -1309,7 +1309,7 @@ static void lcl_CreatePortions( (i_nStartPos <= pUnoCursor->Start()->nNode.GetNode().GetTextNode()-> GetText().getLength()), "Incorrect start position" ); // ??? should this be i_nStartPos - current position ? - pUnoCursor->Right(static_cast<sal_Int32>(i_nStartPos)); + pUnoCursor->Right(i_nStartPos); } SwDoc * const pDoc = pUnoCursor->GetDoc(); |