summaryrefslogtreecommitdiff
path: root/chart2/source/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-03 10:53:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-03 14:15:37 +0200
commit31d4562ca9e21f7b04960ac083765733e9a55118 (patch)
tree977b0cdd4a768a2eed9fef6a0f79ecff0b3250e6 /chart2/source/inc
parentbce779932b59990fbdf8278993f8bb9514781de2 (diff)
use begin()/end() when working with Sequence
Change-Id: Icf9da6a24d72c073338f6fbb513d7250b3898015 Reviewed-on: https://gerrit.libreoffice.org/39469 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/inc')
-rw-r--r--chart2/source/inc/CloneHelper.hxx2
-rw-r--r--chart2/source/inc/ModifyListenerHelper.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/inc/CloneHelper.hxx b/chart2/source/inc/CloneHelper.hxx
index ae739bbc6ab6..5c8b87f307f3 100644
--- a/chart2/source/inc/CloneHelper.hxx
+++ b/chart2/source/inc/CloneHelper.hxx
@@ -64,7 +64,7 @@ template< class Interface >
css::uno::Sequence< css::uno::Reference<Interface> > & rDestination )
{
rDestination.realloc( rSource.getLength());
- std::transform( rSource.getConstArray(), rSource.getConstArray() + rSource.getLength(),
+ std::transform( rSource.begin(), rSource.end(),
rDestination.getArray(),
CreateRefClone< Interface >());
}
diff --git a/chart2/source/inc/ModifyListenerHelper.hxx b/chart2/source/inc/ModifyListenerHelper.hxx
index 48f2e0b149b0..4a8dabc7d2ea 100644
--- a/chart2/source/inc/ModifyListenerHelper.hxx
+++ b/chart2/source/inc/ModifyListenerHelper.hxx
@@ -213,7 +213,7 @@ void addListenerToAllSequenceElements(
const css::uno::Reference< css::util::XModifyListener > & xListener )
{
if( xListener.is())
- std::for_each( rSequence.getConstArray(), rSequence.getConstArray() + rSequence.getLength(),
+ std::for_each( rSequence.begin(), rSequence.end(),
impl::addListenerFunctor< T >( xListener ));
}
@@ -255,7 +255,7 @@ void removeListenerFromAllSequenceElements(
const css::uno::Reference< css::util::XModifyListener > & xListener )
{
if( xListener.is())
- std::for_each( rSequence.getConstArray(), rSequence.getConstArray() + rSequence.getLength(),
+ std::for_each( rSequence.begin(), rSequence.end(),
impl::removeListenerFunctor< T >( xListener ));
}