summaryrefslogtreecommitdiff
path: root/dbaccess/source/core/api/RowSet.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-03-06 23:30:30 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-03-08 00:15:34 +0100
commitd6b33e49a5e9c51827eda9c5ba16d8daeb27e8af (patch)
tree59218a2767b243a0f1a88ee984492ca06c368283 /dbaccess/source/core/api/RowSet.cxx
parentf23651ff10da2d4bbbc47d0152b5cc321c29f0d1 (diff)
Use for-range loops in dbaccess (part 3)
Change-Id: I4cec44ea6366b6a38992e583d6290223d5c469f6 Reviewed-on: https://gerrit.libreoffice.org/50849 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess/source/core/api/RowSet.cxx')
-rw-r--r--dbaccess/source/core/api/RowSet.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx
index cf7d33f40eaa..3d4e58a93c6b 100644
--- a/dbaccess/source/core/api/RowSet.cxx
+++ b/dbaccess/source/core/api/RowSet.cxx
@@ -2182,10 +2182,9 @@ void ORowSet::notifyRowSetAndClonesRowDeleted( const Any& _rBookmark, sal_Int32
// notify ourself
onDeletedRow( _rBookmark, _nPos );
// notify the clones
- connectivity::OWeakRefArray::const_iterator aEnd = m_aClones.end();
- for (connectivity::OWeakRefArray::const_iterator i = m_aClones.begin(); aEnd != i; ++i)
+ for (auto const& clone : m_aClones)
{
- Reference< XUnoTunnel > xTunnel(i->get(),UNO_QUERY);
+ Reference< XUnoTunnel > xTunnel(clone.get(),UNO_QUERY);
if(xTunnel.is())
{
ORowSetClone* pClone = reinterpret_cast<ORowSetClone*>(xTunnel->getSomething(ORowSetClone::getUnoTunnelImplementationId()));