[Libreoffice-commits] core.git: include/comphelper
Julien Nabet
serval2412 at yahoo.fr
Thu Mar 29 18:33:47 UTC 2018
include/comphelper/IdPropArrayHelper.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 7260cd5381ce5511fd761cd4ca012fcb62fe3c17
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Thu Mar 29 15:54:52 2018 +0200
Use for-range loop in include/comphelper
Change-Id: I9b8a7e873eef56c704fa6c09d37d51a0ea913a92
Reviewed-on: https://gerrit.libreoffice.org/52075
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/include/comphelper/IdPropArrayHelper.hxx b/include/comphelper/IdPropArrayHelper.hxx
index cf0232348cc9..fdc0d4614d72 100644
--- a/include/comphelper/IdPropArrayHelper.hxx
+++ b/include/comphelper/IdPropArrayHelper.hxx
@@ -57,8 +57,8 @@ namespace comphelper
if (!--s_nRefCount)
{
// delete the element
- for (OIdPropertyArrayMap::iterator i = s_pMap->begin(); i != s_pMap->end(); ++i)
- delete (*i).second;
+ for (auto const& elem : *s_pMap)
+ delete elem.second;
delete s_pMap;
s_pMap = nullptr;
}
More information about the Libreoffice-commits
mailing list