diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-07 10:24:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-07 10:24:57 +0000 |
commit | 83932cfee224ed0a49c6f41025fd371d48f591e9 (patch) | |
tree | 3ea681d3404ce36926ba34463299d6fc958978f0 /lotuswordpro | |
parent | a62200a8511c3b50c05b540ce7a6ccf93993943e (diff) |
WaE: explicitly cast result
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfcolor.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xfcolor.hxx b/lotuswordpro/source/filter/xfilter/xfcolor.hxx index f0eaa3fd196a..402a26cd1641 100644 --- a/lotuswordpro/source/filter/xfilter/xfcolor.hxx +++ b/lotuswordpro/source/filter/xfilter/xfcolor.hxx @@ -82,13 +82,13 @@ public: { unsigned int c = color&0x00ffffff; unsigned int temp = c; - m_nRed = temp&0x000000ff; + m_nRed = static_cast<sal_uInt8>(temp&0x000000ff); temp = c; - m_nGreen = (temp&0x0000ff00)>>8; + m_nGreen = static_cast<sal_uInt8>((temp&0x0000ff00)>>8); temp = c; - m_nBlue = (temp&0x00ff0000)>>16; + m_nBlue = static_cast<sal_uInt8>((temp&0x00ff0000)>>16); m_bValid = sal_True; } |