summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-03 15:16:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-06-04 06:35:44 +0000
commit81610561edfb8c899a062cc09fc1a80e8098577f (patch)
treecdb746528f25a7d40c51be4b9cd324ceb55035b6 /include/comphelper
parenta9a2375a744368415a7ea4c563c8e4776a6ec059 (diff)
uno::Sequence provides now begin and end
use begin() and end() when calling std::copy on an uno::Sequence Inspired by commit b34b648fc3262c5d9aa295f621e8fe9c97d4c6b2 "uno::Sequence provides now begin and end" Change-Id: I08e8c3fd6144e77b95a26f85bc0daf6a9edeeb0b Reviewed-on: https://gerrit.libreoffice.org/16057 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/sequence.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/comphelper/sequence.hxx b/include/comphelper/sequence.hxx
index fcaab6b48c78..03b7feabcb91 100644
--- a/include/comphelper/sequence.hxx
+++ b/include/comphelper/sequence.hxx
@@ -256,7 +256,7 @@ namespace comphelper
template < typename DstType, typename SrcType >
inline DstType* sequenceToArray( DstType* io_pArray, const ::com::sun::star::uno::Sequence< SrcType >& i_Sequence )
{
- ::std::copy( i_Sequence.getConstArray(), i_Sequence.getConstArray()+i_Sequence.getLength(), io_pArray );
+ ::std::copy( i_Sequence.begin(), i_Sequence.end(), io_pArray );
return io_pArray;
}
@@ -327,7 +327,7 @@ namespace comphelper
inline DstType sequenceToContainer( const ::com::sun::star::uno::Sequence< SrcType >& i_Sequence )
{
DstType result( i_Sequence.getLength() );
- ::std::copy( i_Sequence.getConstArray(), i_Sequence.getConstArray()+i_Sequence.getLength(), result.begin() );
+ ::std::copy( i_Sequence.begin(), i_Sequence.end(), result.begin() );
return result;
}
@@ -365,7 +365,7 @@ namespace comphelper
inline DstType& sequenceToContainer( DstType& o_Output, const ::com::sun::star::uno::Sequence< SrcType >& i_Sequence )
{
o_Output.resize( i_Sequence.getLength() );
- ::std::copy( i_Sequence.getConstArray(), i_Sequence.getConstArray()+i_Sequence.getLength(), o_Output.begin() );
+ ::std::copy( i_Sequence.begin(), i_Sequence.end(), o_Output.begin() );
return o_Output;
}