diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-10 17:29:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-11 00:03:07 +0100 |
commit | f697d06b67e91c704c088dceafade209462e0b95 (patch) | |
tree | 7d832433bb13d3840551fe7830fd5fd589e644f1 /include/comphelper | |
parent | 99e373cd4c78084ded349f3e3de7b0504af2dd90 (diff) |
Remove unnecessary makePropertyValue specialization for Any
...that had been introduced with 9e87a00e11486a2be64b0dc2799e3efca4b000cc "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/44607
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/propertyvalue.hxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/comphelper/propertyvalue.hxx b/include/comphelper/propertyvalue.hxx index 185d6d1e29d0..ba442c12a931 100644 --- a/include/comphelper/propertyvalue.hxx +++ b/include/comphelper/propertyvalue.hxx @@ -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 |