diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:16:43 +0100 |
commit | abf7b94123a555c4f3e90a0ae41bd7a842d1c1fb (patch) | |
tree | 6e0208e0450308652be1a0a512f98023b35ca489 /sd/source/ui/unoidl/UnoDocumentSettings.cxx | |
parent | b271fb5ba1a8f7da2120d7037de087b02eb16c91 (diff) |
More loplugin:cstylecast: sd
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I144975b94fe2725ac740a953ca2133e99f8a3fce
Diffstat (limited to 'sd/source/ui/unoidl/UnoDocumentSettings.cxx')
-rw-r--r-- | sd/source/ui/unoidl/UnoDocumentSettings.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index 44262f34c2c8..f8e682edfc8f 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -646,7 +646,7 @@ DocumentSettings::_setPropertyValues(const PropertyMapEntry** ppEntries, { if( aPrintOpts.GetOutputQuality() != nValue) { - aPrintOpts.SetOutputQuality( (sal_uInt16)nValue ); + aPrintOpts.SetOutputQuality( static_cast<sal_uInt16>(nValue) ); bOptionsChanged = true; } bOk = true; @@ -697,7 +697,7 @@ DocumentSettings::_setPropertyValues(const PropertyMapEntry** ppEntries, sal_Int32 nValue = 0; if( (*pValues >>= nValue) && (nValue >= 0) ) { - pDoc->SetDefaultTabulator((sal_uInt16)nValue); + pDoc->SetDefaultTabulator(static_cast<sal_uInt16>(nValue)); bOk = true; bChanged = true; } @@ -892,7 +892,7 @@ DocumentSettings::_setPropertyValues(const PropertyMapEntry** ppEntries, // the document and determine it really differs from the old // one. sal_Int16 nOldValue = - (sal_Int16)pDoc->GetPrinterIndependentLayout (); + static_cast<sal_Int16>(pDoc->GetPrinterIndependentLayout ()); sal_Int16 nValue = 0; if (*pValues >>= nValue) { @@ -1060,7 +1060,7 @@ DocumentSettings::_getPropertyValues( *pValue <<= aPrintOpts.IsOutline(); break; case HANDLE_SLIDESPERHANDOUT: - *pValue <<= (sal_Int16)aPrintOpts.GetHandoutPages(); + *pValue <<= static_cast<sal_Int16>(aPrintOpts.GetHandoutPages()); break; case HANDLE_HANDOUTHORIZONTAL: *pValue <<= aPrintOpts.IsHandoutHorizontal(); @@ -1093,13 +1093,13 @@ DocumentSettings::_getPropertyValues( *pValue <<= aPrintOpts.IsBackPage(); break; case HANDLE_PRINTQUALITY: - *pValue <<= (sal_Int32)aPrintOpts.GetOutputQuality(); + *pValue <<= static_cast<sal_Int32>(aPrintOpts.GetOutputQuality()); break; case HANDLE_MEASUREUNIT: { short nMeasure; SvxFieldUnitToMeasureUnit( pDoc->GetUIUnit(), nMeasure ); - *pValue <<= (sal_Int16)nMeasure; + *pValue <<= static_cast<sal_Int16>(nMeasure); } break; case HANDLE_SCALE_NUM: @@ -1109,10 +1109,10 @@ DocumentSettings::_getPropertyValues( *pValue <<= pDoc->GetUIScale().GetDenominator(); break; case HANDLE_TABSTOP: - *pValue <<= (sal_Int32)pDoc->GetDefaultTabulator(); + *pValue <<= static_cast<sal_Int32>(pDoc->GetDefaultTabulator()); break; case HANDLE_PAGENUMFMT: - *pValue <<= (sal_Int32)pDoc->GetPageNumType(); + *pValue <<= static_cast<sal_Int32>(pDoc->GetPageNumType()); break; case HANDLE_PRINTERNAME: { @@ -1177,7 +1177,7 @@ DocumentSettings::_getPropertyValues( case HANDLE_PRINTER_INDEPENDENT_LAYOUT: { sal_Int16 nPrinterIndependentLayout = - (sal_Int16)pDoc->GetPrinterIndependentLayout(); + static_cast<sal_Int16>(pDoc->GetPrinterIndependentLayout()); *pValue <<= nPrinterIndependentLayout; } break; |