[Libreoffice-commits] core.git: dbaccess/source
Julien Nabet
serval2412 at yahoo.fr
Thu Dec 28 19:51:50 UTC 2017
dbaccess/source/core/api/RowSetCache.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit c91281c9507e07330e1d7b04ca0674dd459ed2f7
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Thu Dec 28 18:26:13 2017 +0100
Use returned iterator (dbaccess/rowsetcache)
Change-Id: If53bbc8e3cdbbf71bed0d343f1ff358b72c46d21
Reviewed-on: https://gerrit.libreoffice.org/47147
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx
index 923a41cc8356..cd5ad186380b 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -1441,8 +1441,7 @@ void ORowSetCache::deleteIterator(const ORowSetBase* _pRowSet)
{
if ( aCacheIter->second.pRowSet == _pRowSet )
{
- m_aCacheIterators.erase(aCacheIter);
- aCacheIter = m_aCacheIterators.begin();
+ aCacheIter = m_aCacheIterators.erase(aCacheIter);
}
else
++aCacheIter;
More information about the Libreoffice-commits
mailing list