diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-01-25 19:05:11 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-01-26 09:07:59 +0100 |
commit | 199b307be547405fc32ed29e23e6aa9bb81ce398 (patch) | |
tree | 82834ea393ea8b8fd23e33c989a86e913431e46a /connectivity/source/drivers/firebird/Connection.cxx | |
parent | 6e36e0ce006a85fb286b787def737bff6c8e9d8f (diff) |
Modernize a bit connectivity (part1)
by using for range loops
+ use returned iterator by erase call in ZConnectionPool
Change-Id: I97b14b24ebddefea909bc17cb3463f840fde38a0
Reviewed-on: https://gerrit.libreoffice.org/48634
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'connectivity/source/drivers/firebird/Connection.cxx')
-rw-r--r-- | connectivity/source/drivers/firebird/Connection.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx index 4ae13ad6beae..5316895c3679 100644 --- a/connectivity/source/drivers/firebird/Connection.cxx +++ b/connectivity/source/drivers/firebird/Connection.cxx @@ -942,9 +942,9 @@ void Connection::disposing() void Connection::disposeStatements() { MutexGuard aGuard(m_aMutex); - for (OWeakRefArray::iterator i = m_aStatements.begin(); m_aStatements.end() != i; ++i) + for (auto const& statement : m_aStatements) { - Reference< XComponent > xComp(i->get(), UNO_QUERY); + Reference< XComponent > xComp(statement.get(), UNO_QUERY); if (xComp.is()) xComp->dispose(); } |