diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-11 17:38:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-11 17:38:14 +0100 |
commit | df5dbfbc6424dc23dc50547473d3767b5d5340f8 (patch) | |
tree | 4e27dd74642ce940520d50e37510c0bccc8fb32a /editeng | |
parent | d93f6b0a531a3586da85a79fbced26a18010958b (diff) |
loplugin:redundantcast: editeng
(after a to-be-committed improved loplugin:cstylecast would have rewritten the
C-style casts into static_casts)
Change-Id: I44210b93101c128a7f931816e4d2c71335117df3
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editview.cxx | 2 | ||||
-rw-r--r-- | editeng/source/items/frmitems.cxx | 8 | ||||
-rw-r--r-- | editeng/source/items/writingmodeitem.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index a7000ce5e5a9..7b1b123ddcf4 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -1375,7 +1375,7 @@ bool EditView::ChangeFontSize( bool bGrow, SfxItemSet& rSet, const FontList* pFo if( (nHeight >= 2) && (nHeight <= 9999 ) ) { - nHeight = OutputDevice::LogicToLogic( nHeight, MapUnit::MapPoint, (MapUnit)eUnit ) / 10; + nHeight = OutputDevice::LogicToLogic( nHeight, MapUnit::MapPoint, eUnit ) / 10; if( nHeight != (long)aFontHeightItem.GetHeight() ) { diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 3237029caa93..cb46bec99858 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -573,7 +573,7 @@ bool SvxLRSpaceItem::GetPresentation Application::GetSettings().GetUILanguageTag()); } else - rText = GetMetricText( (long)nLeftMargin, + rText = GetMetricText( nLeftMargin, eCoreUnit, ePresUnit, &rIntl ); rText += OUString(cpDelim); if ( 100 != nPropFirstLineOfst ) @@ -591,7 +591,7 @@ bool SvxLRSpaceItem::GetPresentation Application::GetSettings().GetUILanguageTag()); } else - rText += GetMetricText( (long)nRightMargin, + rText += GetMetricText( nRightMargin, eCoreUnit, ePresUnit, &rIntl ); return true; } @@ -604,7 +604,7 @@ bool SvxLRSpaceItem::GetPresentation else { rText = rText + - GetMetricText( (long)nLeftMargin, eCoreUnit, ePresUnit, &rIntl ) + + GetMetricText( nLeftMargin, eCoreUnit, ePresUnit, &rIntl ) + " " + EditResId(GetMetricId(ePresUnit)); } rText += OUString(cpDelim); @@ -630,7 +630,7 @@ bool SvxLRSpaceItem::GetPresentation else { rText = rText + - GetMetricText( (long)nRightMargin, + GetMetricText( nRightMargin, eCoreUnit, ePresUnit, &rIntl ) + " " + EditResId(GetMetricId(ePresUnit)); } diff --git a/editeng/source/items/writingmodeitem.cxx b/editeng/source/items/writingmodeitem.cxx index 749eac131e05..00410af6ed71 100644 --- a/editeng/source/items/writingmodeitem.cxx +++ b/editeng/source/items/writingmodeitem.cxx @@ -101,7 +101,7 @@ bool SvxWritingModeItem::PutValue( const css::uno::Any& rVal, sal_uInt8 ) bool SvxWritingModeItem::QueryValue( css::uno::Any& rVal, sal_uInt8 ) const { - rVal <<= (WritingMode)GetValue(); + rVal <<= GetValue(); return true; } |