diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-12 09:51:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-12 11:27:50 +0200 |
commit | 4b704b530c072c22dc4d66fdad407f3291fdd7e2 (patch) | |
tree | bd0d9fa91ee3f7d14a8e4cccb1459b7f6e172d45 /include | |
parent | d23ec642e9eecd792da7a39b7871b384b9256e91 (diff) |
add a toAny variant that takes a && value
to avoid some unnecessary construction - we hit this path when going
through the comphelper makeProperty functions sometimes
Change-Id: Idbc4550c9ca26d4a940397d6fe038db5c342867f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151689
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/com/sun/star/uno/Any.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/com/sun/star/uno/Any.hxx b/include/com/sun/star/uno/Any.hxx index 7909f1cb239e..75ae40b48f26 100644 --- a/include/com/sun/star/uno/Any.hxx +++ b/include/com/sun/star/uno/Any.hxx @@ -250,6 +250,8 @@ template<> Any toAny(Any const & value) { return value; } #if defined LIBO_INTERNAL_ONLY +inline Any toAny(Any&& value) { return std::move(value); } + template<typename T1, typename T2> Any toAny(rtl::OUStringConcat<T1, T2> && value) { return Any(std::move(value)); } |