From 047ea102304c5b2d15ea12b088f1f3b929a76e36 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 3 Dec 2012 22:43:08 +0100 Subject: workaround for a strange mingw problem caused by fast string operator+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: no matching function for call to ‘transform(const com::sun::star::beans::NamedValue*, const com::sun::star::beans::NamedValue*, com::sun::star::uno::Any*, )’ Change-Id: I7d38a7ee13497fd11b2cea340e2f800dd78f485f --- comphelper/inc/comphelper/namedvaluecollection.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'comphelper/inc') 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; } -- cgit