diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-19 09:14:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-19 09:33:29 +0200 |
commit | 2554efabb6d7cd2ad9f7cfdddd0712c25cdca1cd (patch) | |
tree | 1b8fd3940910ffcd328e16a53e208c099f67ab21 /chart2/source/inc | |
parent | f7b5f477bfd942e0a1d8880c372635000d724dd7 (diff) |
use comphelper::containerToSequence
in chart2, we remove a local equivalent of the method
Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
Diffstat (limited to 'chart2/source/inc')
-rw-r--r-- | chart2/source/inc/ContainerHelper.hxx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/chart2/source/inc/ContainerHelper.hxx b/chart2/source/inc/ContainerHelper.hxx index 7c7284acf888..9f01b47ab01b 100644 --- a/chart2/source/inc/ContainerHelper.hxx +++ b/chart2/source/inc/ContainerHelper.hxx @@ -32,25 +32,6 @@ namespace chart namespace ContainerHelper { -/** converts a standard container into a sequence of the same type - - input: standard container - output: css::uno::Sequence< container::value_type > - - example: - - ::std::vector< sal_Int32 > aVector; - Sequence< sal_Int32 > aSequence( ContainerHelper::ContainerToSequence( aVector )); - */ -template< class Container > - ::com::sun::star::uno::Sequence< typename Container::value_type > - ContainerToSequence( const Container & rCont ) -{ - ::com::sun::star::uno::Sequence< typename Container::value_type > aResult( rCont.size()); - ::std::copy( rCont.begin(), rCont.end(), aResult.getArray()); - return aResult; -} - /** converts a UNO sequence into a standard "Sequence" container. For convenience see the methods SequenceToVector, etc. below. |