summaryrefslogtreecommitdiff
path: root/comphelper/inc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-03 22:43:08 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-12-03 22:47:08 +0100
commit047ea102304c5b2d15ea12b088f1f3b929a76e36 (patch)
tree2aceb04154f1d078e994ff078822546b5bbb404b /comphelper/inc
parent150270b097a0da7963460d568d8e599db623af2d (diff)
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/inc')
-rw-r--r--comphelper/inc/comphelper/namedvaluecollection.hxx3
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;
}