summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-01-18 09:15:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-18 09:00:27 +0100
commit5fa8b3edea7ecb4672a11e12fc36f58cd7872586 (patch)
tree1fb34d831f2407882ab1d248ce24c17f0eb41ae6 /filter
parentedb953cfb77c7ad6578a191b48c47c25d8d59d11 (diff)
simplify construction
Change-Id: If00dfd6aec5d39e17d63c7bc8fdc58ee406ef3bb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109505 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/util.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/msfilter/util.cxx b/filter/source/msfilter/util.cxx
index 63d12f514c24..d821b8f2e6c7 100644
--- a/filter/source/msfilter/util.cxx
+++ b/filter/source/msfilter/util.cxx
@@ -49,7 +49,7 @@ rtl_TextEncoding getBestTextEncodingFromLocale(const css::lang::Locale &rLocale)
g(static_cast<sal_uInt8>((nColor>>8)&0xFF)),
b(static_cast<sal_uInt8>((nColor>>16)&0xFF)),
t(static_cast<sal_uInt8>((nColor>>24)&0xFF));
- return ::Color(ColorTransparency, (t<<24) + (r<<16) + (g<<8) + b);
+ return ::Color(ColorTransparency, t, r, g, b);
}
DateTime DTTM2DateTime( tools::Long lDTTM )