diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:01 +0100 |
commit | 8456c2ba408b3bed160d3e5f050738301b225bd5 (patch) | |
tree | f5b4ba22b4c1e1ccfef3c5430b627ffd0bfc9ec7 /include/tools/color.hxx | |
parent | More loplugin:cstylecast: ucb (diff) | |
download | core-8456c2ba408b3bed160d3e5f050738301b225bd5.tar.gz core-8456c2ba408b3bed160d3e5f050738301b225bd5.zip |
More loplugin:cstylecast: tools
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: Ifb9ebc9623c8df14ea0d4c907001bd16c5b9ae59
Diffstat (limited to 'include/tools/color.hxx')
-rw-r--r-- | include/tools/color.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/tools/color.hxx b/include/tools/color.hxx index 1d0d239d5af5..5e1b603aa461 100644 --- a/include/tools/color.hxx +++ b/include/tools/color.hxx @@ -157,13 +157,13 @@ public: inline void Color::SetRed( sal_uInt8 nRed ) { mnColor &= 0xFF00FFFF; - mnColor |= ((sal_uInt32)nRed)<<16; + mnColor |= static_cast<sal_uInt32>(nRed)<<16; } inline void Color::SetGreen( sal_uInt8 nGreen ) { mnColor &= 0xFFFF00FF; - mnColor |= ((sal_uInt16)nGreen)<<8; + mnColor |= static_cast<sal_uInt16>(nGreen)<<8; } inline void Color::SetBlue( sal_uInt8 nBlue ) @@ -175,7 +175,7 @@ inline void Color::SetBlue( sal_uInt8 nBlue ) inline void Color::SetTransparency( sal_uInt8 nTransparency ) { mnColor &= 0x00FFFFFF; - mnColor |= ((sal_uInt32)nTransparency)<<24; + mnColor |= static_cast<sal_uInt32>(nTransparency)<<24; } inline bool Color::IsRGBEqual( const Color& rColor ) const |