From cbf5ec321baed1a95ddfdb385fdc5f52a5d13e61 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 20 Apr 2018 08:51:50 +0200 Subject: loplugin:cstylecast (clang-cl) Change-Id: Ica7c080e08d74443687069df42216e0f0c4f2153 --- vcl/win/gdi/salfont.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/win/gdi') diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx index f9b9418ccb75..f6deaaf6b1e8 100644 --- a/vcl/win/gdi/salfont.cxx +++ b/vcl/win/gdi/salfont.cxx @@ -863,13 +863,13 @@ HFONT WinSalGraphics::ImplDoSetFont(FontSelectPattern const * i_pFont, float& o_ } else if( -aLogFont.lfHeight >= +aLogFont.lfWidth ) { - o_rFontScale = -aLogFont.lfHeight / (float)MAXFONTHEIGHT; + o_rFontScale = -aLogFont.lfHeight / float(MAXFONTHEIGHT); aLogFont.lfHeight = -MAXFONTHEIGHT; aLogFont.lfWidth = FRound( aLogFont.lfWidth / o_rFontScale ); } else // #i95867# also limit font widths { - o_rFontScale = +aLogFont.lfWidth / (float)MAXFONTHEIGHT; + o_rFontScale = +aLogFont.lfWidth / float(MAXFONTHEIGHT); aLogFont.lfWidth = +MAXFONTHEIGHT; aLogFont.lfHeight = FRound( aLogFont.lfHeight / o_rFontScale ); } -- cgit