summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/linksrc.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-02-06 19:25:01 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-07 06:30:31 +0100
commit9751a273747a2a6ba80c8b2e6012d788eee7c461 (patch)
tree8c22066aea5baffa7427e6374f447a6f5dd0421a /sfx2/source/appl/linksrc.cxx
parentf0c171a1dd2698f5bec14f5cf00136477032c202 (diff)
Use for-range loops in sfx2 (part1)
Change-Id: I1a06e105ca9f1151afca236c83e3e0c9d2679c6f Reviewed-on: https://gerrit.libreoffice.org/49318 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/appl/linksrc.cxx')
-rw-r--r--sfx2/source/appl/linksrc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/appl/linksrc.cxx b/sfx2/source/appl/linksrc.cxx
index dff4a7f9619f..f55bb31bab9d 100644
--- a/sfx2/source/appl/linksrc.cxx
+++ b/sfx2/source/appl/linksrc.cxx
@@ -111,8 +111,8 @@ public:
~SvLinkSource_Array_Impl()
{
- for(std::vector<SvLinkSource_Entry_Impl*>::const_iterator it = mvData.begin(); it != mvData.end(); ++it)
- delete *it;
+ for (auto const& elem : mvData)
+ delete elem;
}
};