summaryrefslogtreecommitdiff
path: root/svl/source/inc
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-09-05 12:08:51 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-09-06 11:42:23 +0000
commitcb970f2d3d4241ce209b84518ac798598fd0dc39 (patch)
tree413d85f0069c71a05962cd11e02c85c23bf730bf /svl/source/inc
parentd2143eacaf8b9799a1abd9bf1ce54df9bf73d29a (diff)
use range based loops in SfxItemPool
access arrays with [] try to clear up Delete() Change-Id: Ifcb741f56d263cf79c751aa6e32b410e6c22e6ef Reviewed-on: https://gerrit.libreoffice.org/28673 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl/source/inc')
-rw-r--r--svl/source/inc/poolio.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svl/source/inc/poolio.hxx b/svl/source/inc/poolio.hxx
index c33a494076b6..627fd6ba62ab 100644
--- a/svl/source/inc/poolio.hxx
+++ b/svl/source/inc/poolio.hxx
@@ -146,9 +146,8 @@ struct SfxItemPool_Impl
void DeleteItems()
{
- std::vector<SfxPoolItemArray_Impl*>::iterator itr = maPoolItems.begin(), itrEnd = maPoolItems.end();
- for (; itr != itrEnd; ++itr)
- delete *itr;
+ for (auto pPoolItemArray : maPoolItems)
+ delete pPoolItemArray;
maPoolItems.clear();
maPoolDefaults.clear();