include/tools/color.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a5738f854d9dc6c1c3d6c725d746d9fc71359552
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Wed Jan 13 09:06:24 2021 +0100
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Wed Jan 13 16:56:00 2021 +0100

    Revert to use of delegating ctor
    
    ... which was there prior to f3b52717e85621d3b4ee1c6d69700e2a0cca8efc
    
    Change-Id: I00d064feae0fff8ff88bb90cd0d60961a0c8ae4a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109122
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Reviewed-by: Dante DM <dante19031...@gmail.com>
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>
    Tested-by: Jenkins

diff --git a/include/tools/color.hxx b/include/tools/color.hxx
index 259cdc52f919..aca6b0ed79b7 100644
--- a/include/tools/color.hxx
+++ b/include/tools/color.hxx
@@ -79,7 +79,7 @@ public:
     {}
 
     constexpr Color(sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue)
-        : mValue(sal_uInt32(nBlue) | (sal_uInt32(nGreen) << 8) | 
(sal_uInt32(nRed) << 16) | (sal_uInt32(0) << 24))
+        : Color(0, nRed, nGreen, nBlue)
     {}
 
     // constructor to create a tools-Color from ::basegfx::BColor
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to