diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-12-03 22:43:08 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-12-03 22:47:08 +0100 |
commit | 047ea102304c5b2d15ea12b088f1f3b929a76e36 (patch) | |
tree | 2aceb04154f1d078e994ff078822546b5bbb404b /comphelper | |
parent | Oops I didn't mean to change this. (diff) | |
download | core-047ea102304c5b2d15ea12b088f1f3b929a76e36.tar.gz core-047ea102304c5b2d15ea12b088f1f3b929a76e36.zip |
workaround for a strange mingw problem caused by fast string operator+
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*,
<unresolved overloaded function type>)’
Change-Id: I7d38a7ee13497fd11b2cea340e2f800dd78f485f
Diffstat (limited to 'comphelper')
-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; } |