diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-01 23:16:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-02 10:01:54 +0200 |
commit | 40edf4e6ae3e0bedd978fcaacc9d731094000ecb (patch) | |
tree | 08b5240458fee6fc2651d563eb0e51636a66fc34 /include | |
parent | 55c3860f98fc198bdbf21e2acbb37c5541bb7e6a (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/color.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
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 ) { |