diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-26 14:44:17 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-26 21:35:13 +0200 |
commit | 637d29fa8e0f5b04129244f993c6bb487e8510d8 (patch) | |
tree | 5c150d28cdade5a01bce670146339560d2e4dd5b /include/oox | |
parent | 277d05a7188be77162e4a388c7c825daf8d6e326 (diff) |
Drop ContainerHelper::vectorToSequence and use comphelper::containerToSequence
Change-Id: I987c56feab147cdbeb4ad58bd5ebb23dce6dbbca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124215
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/helper/containerhelper.hxx | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/oox/helper/containerhelper.hxx b/include/oox/helper/containerhelper.hxx index 1bc5ee17f0d8..256719c5334e 100644 --- a/include/oox/helper/containerhelper.hxx +++ b/include/oox/helper/containerhelper.hxx @@ -228,19 +228,6 @@ public: static const typename MapType::mapped_type& getMapElement( const MapType& rMap, const typename MapType::key_type& rKey, const typename MapType::mapped_type& rDefault ); - // vector/map/matrix to UNO sequence -------------------------------------- - - /** Creates a UNO sequence from a std::vector with copies of all elements. - - @param rVector The vector to be converted to a sequence. - - @return A com.sun.star.uno.Sequence object with copies of all objects - contained in the passed vector. - */ - template< typename VectorType > - static css::uno::Sequence< typename VectorType::value_type > - vectorToSequence( const VectorType& rVector ); - /** Creates a UNO sequence of sequences from a matrix with copies of all elements. @param rMatrix The matrix to be converted to a sequence of sequences. @@ -287,15 +274,6 @@ template< typename MapType > return (aIt == rMap.end()) ? rDefault : aIt->second; } -template< typename VectorType > -/*static*/ css::uno::Sequence< typename VectorType::value_type > ContainerHelper::vectorToSequence( const VectorType& rVector ) -{ - typedef typename VectorType::value_type ValueType; - if( rVector.empty() ) - return css::uno::Sequence< ValueType >(); - return css::uno::Sequence<ValueType>(rVector.data(), static_cast<sal_Int32>(rVector.size())); -} - template< typename MatrixType > /*static*/ css::uno::Sequence< css::uno::Sequence< typename MatrixType::value_type > > ContainerHelper::matrixToSequenceSequence( const MatrixType& rMatrix ) { |