diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-06-28 23:27:15 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-07-22 23:50:38 +0200 |
commit | 167e950ab7de3dde1388ac0efc2d76adffbecb2d (patch) | |
tree | 75dc0b7aa2f827d8a6c4164e29db9c407423e683 /sw | |
parent | 84b62be9eabfc84170c25496e427d98a265dcc33 (diff) |
sal_uInt16 to long, constify
Change-Id: Ibb79555b0a767db7c7ee9c388337bbea9cdd7f5d
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/utlui/attrdesc.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/utlui/attrdesc.cxx b/sw/source/uibase/utlui/attrdesc.cxx index 6c3889384182..76943dab1c5c 100644 --- a/sw/source/uibase/utlui/attrdesc.cxx +++ b/sw/source/uibase/utlui/attrdesc.cxx @@ -251,7 +251,7 @@ SfxItemPresentation SwRegisterItem::GetPresentation case SFX_ITEM_PRESENTATION_NAMELESS: case SFX_ITEM_PRESENTATION_COMPLETE: { - sal_uInt16 nId = GetValue() ? STR_REGISTER_ON : STR_REGISTER_OFF; + const sal_uInt16 nId = GetValue() ? STR_REGISTER_ON : STR_REGISTER_OFF; rText = SW_RESSTR( nId ); return ePres; } @@ -306,7 +306,7 @@ SfxItemPresentation SwParaConnectBorderItem::GetPresentation case SFX_ITEM_PRESENTATION_NAMELESS: case SFX_ITEM_PRESENTATION_COMPLETE: { - sal_uInt16 nId = GetValue() ? STR_CONNECT_BORDER_ON : STR_CONNECT_BORDER_OFF; + const sal_uInt16 nId = GetValue() ? STR_CONNECT_BORDER_ON : STR_CONNECT_BORDER_OFF; rText = SW_RESSTR( nId ); return ePres; } @@ -694,7 +694,7 @@ SfxItemPresentation SwFmtCol::GetPresentation rText = OUString(nCnt) + " " + SW_RESSTR( STR_COLUMNS ); if ( COLADJ_NONE != GetLineAdj() ) { - sal_uInt16 nWdth = sal_uInt16(GetLineWidth()); + const long nWdth = static_cast<long>(GetLineWidth()); rText = rText + " " + SW_RESSTR( STR_LINE_WIDTH ) + " " + ::GetMetricText( nWdth, eCoreUnit, SFX_MAPUNIT_POINT, pIntl ); @@ -1153,7 +1153,7 @@ SfxItemPresentation SwInvertGrf::GetPresentation( case SFX_ITEM_PRESENTATION_COMPLETE: if( SFX_ITEM_PRESENTATION_COMPLETE == ePres ) { - sal_uInt16 nId = GetValue() ? STR_INVERT : STR_INVERT_NOT; + const sal_uInt16 nId = GetValue() ? STR_INVERT : STR_INVERT_NOT; rText = SW_RESSTR( nId ); } break; @@ -1233,7 +1233,7 @@ SfxItemPresentation SwFmtFollowTextFlow::GetPresentation( SfxItemPresentation eP break; case SFX_ITEM_PRESENTATION_COMPLETE: { - sal_uInt16 nId = GetValue() ? STR_FOLLOW_TEXT_FLOW : STR_DONT_FOLLOW_TEXT_FLOW; + const sal_uInt16 nId = GetValue() ? STR_FOLLOW_TEXT_FLOW : STR_DONT_FOLLOW_TEXT_FLOW; rText = SW_RESSTR( nId ); } break; |