diff options
author | Noel Grandin <noel@peralex.com> | 2015-06-29 10:11:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-29 10:11:53 +0200 |
commit | b55166d266f31caf7bd85e54a59c7e8b49204b16 (patch) | |
tree | f4d98e90c214a6e588e2b4e22c05b9c0f44309aa /embedserv | |
parent | 39fd37f39db37a83c4a1491d68518e721b04fc5f (diff) |
Revert "return and use std::vector from OInterfaceContainerHelper"
This reverts commit e57314f61f67b093510c5a8a8f34a62126ba8734.
Diffstat (limited to 'embedserv')
-rw-r--r-- | embedserv/source/embed/intercept.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/embedserv/source/embed/intercept.cxx b/embedserv/source/embed/intercept.cxx index e335d122c6ae..20dcfd116511 100644 --- a/embedserv/source/embed/intercept.cxx +++ b/embedserv/source/embed/intercept.cxx @@ -218,10 +218,10 @@ void Interceptor::generateFeatureStateEvent() cppu::OInterfaceContainerHelper* pICH = m_pStatCL->getContainer(m_aInterceptedURL[i]); - std::vector<uno::Reference<uno::XInterface> > aSeq; + uno::Sequence<uno::Reference<uno::XInterface> > aSeq; if(pICH) - aSeq = pICH->getElementsAsVector(); - if(aSeq.empty()) + aSeq = pICH->getElements(); + if(!aSeq.getLength()) continue; frame::FeatureStateEvent aStateEvent; @@ -249,11 +249,13 @@ void Interceptor::generateFeatureStateEvent() } - for(uno::Reference<uno::XInterface> & x : aSeq) + for(sal_Int32 k = 0; k < aSeq.getLength(); ++k) { - uno::Reference<frame::XStatusListener> Control(x,uno::UNO_QUERY); + uno::Reference<frame::XStatusListener> + Control(aSeq[k],uno::UNO_QUERY); if(Control.is()) Control->statusChanged(aStateEvent); + } } } |