diff options
author | Jan Holesovsky <kendy@collabora.com> | 2017-07-21 15:11:02 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-07-21 19:50:56 +0200 |
commit | c23cc5d7551a0ed0e3dad2d33dd00b38643456a1 (patch) | |
tree | 9fb4820f9506972da371e67789d09e2c3d487a74 /include | |
parent | 71ab0b8b8368b5010d3af4100d5ea3ca38b725a5 (diff) |
Rename InitAnySequence -> InitAnyPropertySequence, and convert some callers.
Change-Id: I410fef49679360f3308ec0f00bb032a2de0d7931
Reviewed-on: https://gerrit.libreoffice.org/40282
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/propertysequence.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
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 <initializer_list> #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/beans/PropertyValue.hpp> 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<css::uno::Any> vResult{static_cast<sal_Int32>(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; |