From abf7b94123a555c4f3e90a0ae41bd7a842d1c1fb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Jan 2018 20:16:43 +0100 Subject: More loplugin:cstylecast: sd auto-rewrite with "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I144975b94fe2725ac740a953ca2133e99f8a3fce --- sd/source/ui/func/fuscale.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sd/source/ui/func/fuscale.cxx') diff --git a/sd/source/ui/func/fuscale.cxx b/sd/source/ui/func/fuscale.cxx index 6ffa2b98073e..33749b20c71e 100644 --- a/sd/source/ui/func/fuscale.cxx +++ b/sd/source/ui/func/fuscale.cxx @@ -73,7 +73,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) std::unique_ptr pZoomItem; SvxZoomEnableFlags nZoomValues = SvxZoomEnableFlags::ALL; - nValue = (sal_Int16) mpWindow->GetZoom(); + nValue = static_cast(mpWindow->GetZoom()); // zoom on page size? if( mpViewShell && dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr && @@ -112,7 +112,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) ScopedVclPtr pDlg(pFact ? pFact->CreateSvxZoomDialog(nullptr, aNewAttr) : nullptr); if (pDlg) { - pDlg->SetLimits( (sal_uInt16)mpWindow->GetMinZoom(), (sal_uInt16)mpWindow->GetMaxZoom() ); + pDlg->SetLimits( static_cast(mpWindow->GetMinZoom()), static_cast(mpWindow->GetMaxZoom()) ); sal_uInt16 nResult = pDlg->Execute(); switch( nResult ) { -- cgit