diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:01:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:01:15 +0100 |
commit | 72e3c234104a17566c0354beacc6d182234f1e5f (patch) | |
tree | 676e0c1a21ac6b107938d486cbe0b4201b5d4f1c /vcl/source/window/keycod.cxx | |
parent | 0ffaf416ba6ec1d5955008467a5bf46a40ac6640 (diff) |
More loplugin:cstylecast: vcl
Change-Id: I74d1555b461fd8ea316380423fcde2d167714170
Diffstat (limited to 'vcl/source/window/keycod.cxx')
-rw-r--r-- | vcl/source/window/keycod.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/keycod.cxx b/vcl/source/window/keycod.cxx index 93e16339df06..5f4d4c441d30 100644 --- a/vcl/source/window/keycod.cxx +++ b/vcl/source/window/keycod.cxx @@ -88,15 +88,15 @@ KeyFuncType vcl::KeyCode::GetFunction() const sal_uInt16 nCompCode = GetModifier() | GetCode(); if ( nCompCode ) { - for ( sal_uInt16 i = (sal_uInt16)KeyFuncType::NEW; i < (sal_uInt16)KeyFuncType::FRONT; i++ ) + for ( sal_uInt16 i = sal_uInt16(KeyFuncType::NEW); i < sal_uInt16(KeyFuncType::FRONT); i++ ) { sal_uInt16 nKeyCode1; sal_uInt16 nKeyCode2; sal_uInt16 nKeyCode3; sal_uInt16 nKeyCode4; - ImplGetKeyCode( (KeyFuncType)i, nKeyCode1, nKeyCode2, nKeyCode3, nKeyCode4 ); + ImplGetKeyCode( static_cast<KeyFuncType>(i), nKeyCode1, nKeyCode2, nKeyCode3, nKeyCode4 ); if ( (nCompCode == nKeyCode1) || (nCompCode == nKeyCode2) || (nCompCode == nKeyCode3) || (nCompCode == nKeyCode4) ) - return (KeyFuncType)i; + return static_cast<KeyFuncType>(i); } } |