summaryrefslogtreecommitdiff
path: root/include/com/sun/star
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-01 23:11:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-02 08:25:42 +0200
commit36783678bb93210284adede7f9c48332aa8d8b15 (patch)
tree2eac81c5e04075b02b599d1800bdb14b5200331c /include/com/sun/star
parent22887ce7b1ea890e06f4b64bafc97686f30ec129 (diff)
Add css::uno::Any(OUStringNumber) overload
...like was already present for css::uno::makeAny, in preparation of getting rid of makeAny Change-Id: Ic838a8297ec65dae75da6a1deb5933d562070753 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133679 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/com/sun/star')
-rw-r--r--include/com/sun/star/uno/Any.h2
-rw-r--r--include/com/sun/star/uno/Any.hxx2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/com/sun/star/uno/Any.h b/include/com/sun/star/uno/Any.h
index c53ddff68373..e2fc8af41f62 100644
--- a/include/com/sun/star/uno/Any.h
+++ b/include/com/sun/star/uno/Any.h
@@ -86,6 +86,8 @@ public:
explicit inline Any(rtl::OUStringConcat<T1, T2> && value);
template<typename T1, typename T2>
explicit Any(rtl::OUStringConcat<T1, T2> const &) = delete;
+ template<typename T> explicit inline Any(rtl::OUStringNumber<T> && value);
+ template<typename T> explicit Any(rtl::OUStringNumber<T> const &) = delete;
#endif
/** Copy constructor: Sets value of the given any.
diff --git a/include/com/sun/star/uno/Any.hxx b/include/com/sun/star/uno/Any.hxx
index eb2b5267791a..1427cb4c14f6 100644
--- a/include/com/sun/star/uno/Any.hxx
+++ b/include/com/sun/star/uno/Any.hxx
@@ -84,6 +84,8 @@ template<typename T1, typename T2>
Any::Any(rtl::OUStringConcat<T1, T2> && value):
Any(rtl::OUString(std::move(value)))
{}
+template<typename T>
+Any::Any(rtl::OUStringNumber<T> && value): Any(rtl::OUString(std::move(value))) {}
#endif
inline Any::Any( const Any & rAny )