diff options
-rw-r--r-- | comphelper/inc/comphelper/namedvaluecollection.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/comphelper/inc/comphelper/namedvaluecollection.hxx b/comphelper/inc/comphelper/namedvaluecollection.hxx index 6a0335e4a145..f42602bfccb4 100644 --- a/comphelper/inc/comphelper/namedvaluecollection.hxx +++ b/comphelper/inc/comphelper/namedvaluecollection.hxx @@ -356,11 +356,12 @@ namespace comphelper ::com::sun::star::uno::Sequence< VALUE_TYPE > aValues; *this >>= aValues; ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > aWrappedValues( aValues.getLength() ); + ::com::sun::star::uno::Any (* const makeAny)(const VALUE_TYPE&) = ::com::sun::star::uno::makeAny< VALUE_TYPE >; ::std::transform( aValues.getConstArray(), aValues.getConstArray() + aValues.getLength(), aWrappedValues.getArray(), - ::com::sun::star::uno::makeAny< VALUE_TYPE > + makeAny ); return aWrappedValues; } |