diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:02:22 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:02:22 +0100 |
commit | a5eddfbf45277eea21dd2271b36e9668313eadf3 (patch) | |
tree | 21ed6f32d767656ad1c577fd7cc948f5ca22f0f3 /sw/source/core/edit | |
parent | 87e3d60776db4e2ff1ba0040b04a0fa348a46ffa (diff) |
More loplugin:cstylecast: sw
Change-Id: I75f75b53e58221a3bd0a6eb837483e7ebae3a02b
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r-- | sw/source/core/edit/autofmt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx index 04f718761373..b44374de6241 100644 --- a/sw/source/core/edit/autofmt.cxx +++ b/sw/source/core/edit/autofmt.cxx @@ -1530,7 +1530,7 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel ) aFormat.SetCharFormat( pCFormat ); if( !aNumTypes.isEmpty() ) - aFormat.SetNumberingType((SvxNumType)(aNumTypes[ 0 ] - '0')); + aFormat.SetNumberingType(static_cast<SvxNumType>(aNumTypes[ 0 ] - '0')); if( bRTL ) aFormat.SetNumAdjust( SvxAdjust::Right ); @@ -1551,7 +1551,7 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel ) aFormat.SetSuffix( aPostfix.getToken( n, u'\x0001' )); aFormat.SetIncludeUpperLevels( MAXLEVEL ); if( n < aNumTypes.getLength() ) - aFormat.SetNumberingType((SvxNumType)(aNumTypes[ n ] - '0')); + aFormat.SetNumberingType(static_cast<SvxNumType>(aNumTypes[ n ] - '0')); aFormat.SetAbsLSpace( sal_uInt16( nSpaceSteps * n ) + lNumIndent ); |