summaryrefslogtreecommitdiff
path: root/sw/source/core/edit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:02:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:02:22 +0100
commita5eddfbf45277eea21dd2271b36e9668313eadf3 (patch)
tree21ed6f32d767656ad1c577fd7cc948f5ca22f0f3 /sw/source/core/edit
parent87e3d60776db4e2ff1ba0040b04a0fa348a46ffa (diff)
More loplugin:cstylecast: sw
Change-Id: I75f75b53e58221a3bd0a6eb837483e7ebae3a02b
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r--sw/source/core/edit/autofmt.cxx4
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 );