diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/propertyvalue.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/comphelper/propertyvalue.hxx b/include/comphelper/propertyvalue.hxx index ba442c12a931..185d6d1e29d0 100644 --- a/include/comphelper/propertyvalue.hxx +++ b/include/comphelper/propertyvalue.hxx @@ -30,6 +30,18 @@ template<typename T> css::beans::PropertyValue makePropertyValue(const OUString& return aValue; } +/** + * Overload for uno::Any where an additional toAny() is not needed (and is + * actually a deleted function). + */ +template<> inline css::beans::PropertyValue makePropertyValue(const OUString& rName, const css::uno::Any& rValue) +{ + css::beans::PropertyValue aValue; + aValue.Name = rName; + aValue.Value = rValue; + return aValue; +} + } #endif // INCLUDED_COMPHELPER_PROPERTYVALUE_HXX |