diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:03:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:03:36 +0100 |
commit | e1bdc38a0b8861281f4111fa78b39f76be6e14e7 (patch) | |
tree | ee847ac020c48c91148072603dd1706bb719fd83 /sd/source/ui/unoidl/UnoDocumentSettings.cxx | |
parent | 5cd41952cdb1c3c14cd48858d382d8bd95f602ff (diff) |
More loplugin:cstylecast: sd
Change-Id: I77ed2793aad62377ec6fc2513e06e2371c1c77ad
Diffstat (limited to 'sd/source/ui/unoidl/UnoDocumentSettings.cxx')
-rw-r--r-- | sd/source/ui/unoidl/UnoDocumentSettings.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index f8e682edfc8f..7d85f27bb0e6 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -328,7 +328,7 @@ uno::Sequence<beans::PropertyValue> SdDrawDocument* pDoc = mxModel->GetDoc(); for( size_t i = 0; i < SAL_N_ELEMENTS( aURLPropertyNames ); i++ ) { - XPropertyListRef pList = pDoc->GetPropertyList( (XPropertyListType) i ); + XPropertyListRef pList = pDoc->GetPropertyList( static_cast<XPropertyListType>(i) ); bHasEmbed = pList.is() && pList->IsEmbedInDocument(); if( bHasEmbed ) break; @@ -708,7 +708,7 @@ DocumentSettings::_setPropertyValues(const PropertyMapEntry** ppEntries, sal_Int32 nValue = 0; if( (*pValues >>= nValue ) && (nValue >= css::style::NumberingType::CHARS_UPPER_LETTER ) && (nValue <= css::style::NumberingType::PAGE_DESCRIPTOR) ) { - pDoc->SetPageNumType((SvxNumType)nValue); + pDoc->SetPageNumType(static_cast<SvxNumType>(nValue)); bOk = true; bChanged = true; } @@ -831,19 +831,19 @@ DocumentSettings::_setPropertyValues(const PropertyMapEntry** ppEntries, { bOk = true; - pDoc->SetCharCompressType( (CharCompressType)nCharCompressType ); + pDoc->SetCharCompressType( static_cast<CharCompressType>(nCharCompressType) ); SdDrawDocument* pDocument = pDocSh->GetDoc(); SdrOutliner& rOutl = pDocument->GetDrawOutliner(); - rOutl.SetAsianCompressionMode( (CharCompressType)nCharCompressType ); + rOutl.SetAsianCompressionMode( static_cast<CharCompressType>(nCharCompressType) ); SdOutliner* pOutl = pDocument->GetOutliner( false ); if( pOutl ) { - pOutl->SetAsianCompressionMode( (CharCompressType)nCharCompressType ); + pOutl->SetAsianCompressionMode( static_cast<CharCompressType>(nCharCompressType) ); } pOutl = pDocument->GetInternalOutliner( false ); if( pOutl ) { - pOutl->SetAsianCompressionMode( (CharCompressType)nCharCompressType ); + pOutl->SetAsianCompressionMode( static_cast<CharCompressType>(nCharCompressType) ); } } break; @@ -1158,7 +1158,7 @@ DocumentSettings::_getPropertyValues( case HANDLE_CHARCOMPRESS: { - *pValue <<= (sal_Int16)pDoc->GetCharCompressType(); + *pValue <<= static_cast<sal_Int16>(pDoc->GetCharCompressType()); break; } |