Kaydet (Commit) f697d06b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unnecessary makePropertyValue specialization for Any

...that had been introduced with 9e87a00e "oox:
replace PUT_PROP macro with comphelper::makePropertyValue() calls", but for
reasons unclear to me.  toAny is specifically there to either wrap its argument
in an Any or, if the argument already is an Any, pass it on unwrapped.  There
is no deleted toAny overloads or explicit specializations.

Change-Id: I63edf22ba3a63f6b3ebb3347ec5dc9ff81fd3bc4
Reviewed-on: https://gerrit.libreoffice.org/44607Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 99e373cd
......@@ -30,18 +30,6 @@ 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment