[Libreoffice-commits] .: comphelper/inc
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Dec 3 13:47:29 PST 2012
comphelper/inc/comphelper/namedvaluecollection.hxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 047ea102304c5b2d15ea12b088f1f3b929a76e36
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Mon Dec 3 22:43:08 2012 +0100
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
diff --git a/comphelper/inc/comphelper/namedvaluecollection.hxx b/comphelper/inc/comphelper/namedvaluecollection.hxx
index 6a0335e..f42602b 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;
}
More information about the Libreoffice-commits
mailing list