summaryrefslogtreecommitdiffstats
path: root/include/tools/color.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:01 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:13:01 +0100
commit8456c2ba408b3bed160d3e5f050738301b225bd5 (patch)
treef5b4ba22b4c1e1ccfef3c5430b627ffd0bfc9ec7 /include/tools/color.hxx
parentMore loplugin:cstylecast: ucb (diff)
downloadcore-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.hxx6
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