summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-29 10:11:53 +0200
committerNoel Grandin <noel@peralex.com>2015-06-29 10:11:53 +0200
commitb55166d266f31caf7bd85e54a59c7e8b49204b16 (patch)
treef4d98e90c214a6e588e2b4e22c05b9c0f44309aa /chart2
parent39fd37f39db37a83c4a1491d68518e721b04fc5f (diff)
Revert "return and use std::vector from OInterfaceContainerHelper"
This reverts commit e57314f61f67b093510c5a8a8f34a62126ba8734.
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/model/main/ChartModel.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx
index 31e378603339..e38dfcee6b4f 100644
--- a/chart2/source/model/main/ChartModel.cxx
+++ b/chart2/source/model/main/ChartModel.cxx
@@ -227,9 +227,10 @@ bool ChartModel::impl_isControllerConnected( const uno::Reference< frame::XContr
{
try
{
- for( uno::Reference<uno::XInterface> & rInterface : m_aControllers.getElements() )
+ uno::Sequence< uno::Reference<uno::XInterface> > aSeq = m_aControllers.getElements();
+ for( sal_Int32 nN = aSeq.getLength(); nN--; )
{
- if( rInterface == xController )
+ if( aSeq[nN] == xController )
return true;
}
}