From 40edf4e6ae3e0bedd978fcaacc9d731094000ecb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 1 May 2022 23:16:03 +0200 Subject: 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 --- include/tools/color.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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 ) { -- cgit