[Libreoffice-commits] core.git: filter/source

Noel (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 18 08:01:09 UTC 2021


 filter/source/msfilter/util.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5fa8b3edea7ecb4672a11e12fc36f58cd7872586
Author:     Noel <noel.grandin at collabora.co.uk>
AuthorDate: Mon Jan 18 09:15:34 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Jan 18 09:00:27 2021 +0100

    simplify construction
    
    Change-Id: If00dfd6aec5d39e17d63c7bc8fdc58ee406ef3bb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109505
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

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 )


More information about the Libreoffice-commits mailing list