include/tools/color.hxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 40edf4e6ae3e0bedd978fcaacc9d731094000ecb
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Sun May 1 23:16:03 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Mon May 2 10:01:54 2022 +0200

    Add css::uno::Any(Color) specialization
    
    ...like was already present for css::uno::makeAny, in preparation of 
getting rid
    of makeAny
    
    Change-Id: I293e240e38fb9ad7e9e386a46da7b69beda7103b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133680
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/include/tools/color.hxx b/include/tools/color.hxx
index 0cf6e122eb90..e2b1783f5e5d 100644
--- a/include/tools/color.hxx
+++ b/include/tools/color.hxx
@@ -437,6 +437,8 @@ inline void operator <<=( css::uno::Any & rAny, Color value 
)
 }
 
 namespace com::sun::star::uno {
+    template<> inline Any::Any(Color const & value): Any(sal_Int32(value)) {}
+
     template<>
     inline Any makeAny( Color const & value )
     {

Reply via email to