diff options
Diffstat (limited to 'include/comphelper/propertyvalue.hxx')
-rw-r--r-- | include/comphelper/propertyvalue.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/comphelper/propertyvalue.hxx b/include/comphelper/propertyvalue.hxx index 85f3d67385c6..ac4f6886039e 100644 --- a/include/comphelper/propertyvalue.hxx +++ b/include/comphelper/propertyvalue.hxx @@ -27,10 +27,8 @@ namespace comphelper */ template <typename T> css::beans::PropertyValue makePropertyValue(const OUString& rName, T&& rValue) { - css::beans::PropertyValue aValue; - aValue.Name = rName; - aValue.Value = css::uno::toAny(std::forward<T>(rValue)); - return aValue; + return { rName, 0, css::uno::toAny(std::forward<T>(rValue)), + css::beans::PropertyState_DIRECT_VALUE }; } } |