sw/source/core/layout/atrfrm.cxx | 8 ++++---- sw/source/core/txtnode/fmtatr2.cxx | 2 +- sw/source/core/unocore/unoportenum.cxx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit 07f03ee052484eccc04beb89071f402a17f0c516 Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Jun 29 15:56:07 2018 +0200 Improved loplugin:redundantcast (const-qualified typedefs): sw Change-Id: Ib99c4a8f9d90e23a3083c74e72044a2b705a409d Reviewed-on: https://gerrit.libreoffice.org/56704 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> 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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits