From c23cc5d7551a0ed0e3dad2d33dd00b38643456a1 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 21 Jul 2017 15:11:02 +0200 Subject: Rename InitAnySequence -> InitAnyPropertySequence, and convert some callers. Change-Id: I410fef49679360f3308ec0f00bb032a2de0d7931 Reviewed-on: https://gerrit.libreoffice.org/40282 Tested-by: Jenkins Reviewed-by: Jan Holesovsky --- include/comphelper/propertysequence.hxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/comphelper') diff --git a/include/comphelper/propertysequence.hxx b/include/comphelper/propertysequence.hxx index 6af3bb389929..c384edb2848d 100644 --- a/include/comphelper/propertysequence.hxx +++ b/include/comphelper/propertysequence.hxx @@ -14,7 +14,6 @@ #include #include #include -#include #include namespace comphelper @@ -36,18 +35,18 @@ namespace comphelper return vResult; } - /// Init list for property sequences that wrap the NamedValues in Anys. + /// Init list for property sequences that wrap the PropertyValues in Anys. /// /// This is particularly useful for creation of sequences that are later /// unwrapped using comphelper::SequenceAsHashMap. - inline css::uno::Sequence< css::uno::Any > InitAnySequence( + inline css::uno::Sequence< css::uno::Any > InitAnyPropertySequence( ::std::initializer_list< ::std::pair< OUString, css::uno::Any > > vInit) { css::uno::Sequence vResult{static_cast(vInit.size())}; size_t nCount{0}; for(const auto& aEntry : vInit) { - vResult[nCount] <<= css::beans::NamedValue(aEntry.first, aEntry.second); + vResult[nCount] <<= css::beans::PropertyValue(aEntry.first, -1, aEntry.second, css::beans::PropertyState_DIRECT_VALUE); ++nCount; } return vResult; -- cgit