summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-04-20 08:51:50 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-04-20 08:51:50 +0200
commitcbf5ec321baed1a95ddfdb385fdc5f52a5d13e61 (patch)
tree0e175de73bd9d194177a47961469d24717e2bc37 /vcl/win
parentbb589f8e5b267a663c5034343f96808a4814f7b3 (diff)
loplugin:cstylecast (clang-cl)
Change-Id: Ica7c080e08d74443687069df42216e0f0c4f2153
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/gdi/salfont.cxx4
1 files changed, 2 insertions, 2 deletions
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 );
}