sc/inc/miscuno.hxx | 8 -------- sc/source/core/data/dpoutput.cxx | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-)
New commits: commit 7585667c83578e7f073409b2b94a4d34e7124115 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Sep 8 11:30:25 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Sep 8 13:12:05 2023 +0200 replace ScUnoHelpFunctions::VectorToSequence.. with the more standard comphelper::containerToSequence Change-Id: I29a67e52e7c25c2d67b0cd617acc7068737bad5b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156702 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sc/inc/miscuno.hxx b/sc/inc/miscuno.hxx index 1a17e7afe7ea..362212c1564b 100644 --- a/sc/inc/miscuno.hxx +++ b/sc/inc/miscuno.hxx @@ -195,14 +195,6 @@ public: SetOptionalPropertyValue(rPropSet, rPropName, any); } - template<typename ValueType> - static css::uno::Sequence<ValueType> VectorToSequence( const std::vector<ValueType>& rVector ) - { - if (rVector.empty()) - return css::uno::Sequence<ValueType>(); - - return css::uno::Sequence<ValueType>(&rVector[0], static_cast<sal_Int32>(rVector.size())); - } private: static sal_Int32 GetEnumPropertyImpl( const css::uno::Reference< css::beans::XPropertySet>& xProp, const OUString& rName, sal_Int32 nDefault ); diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx index c964dda14c7a..c74f43d10bd7 100644 --- a/sc/source/core/data/dpoutput.cxx +++ b/sc/source/core/data/dpoutput.cxx @@ -501,7 +501,7 @@ uno::Sequence<sheet::MemberResult> getVisiblePageMembersAsResults( const uno::Re // All members are visible. Return empty result. return uno::Sequence<sheet::MemberResult>(); - return ScUnoHelpFunctions::VectorToSequence(aRes); + return comphelper::containerToSequence(aRes); } }