summaryrefslogtreecommitdiff
path: root/helpcompiler/source/HelpIndexer.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-03-17 22:06:55 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-03-18 09:13:59 +0100
commit93f8b703a0f0287354723855afe8e65297ecf716 (patch)
tree1edb1c9599937726bdaef63fb5443559ec46d7a5 /helpcompiler/source/HelpIndexer.cxx
parentea01c61fe374b1122a03568d72f166bb16fa7858 (diff)
Use for-range loops in helpcompiler
Change-Id: I787a5b43cb09ac308082cac0e66540f975d79ead Reviewed-on: https://gerrit.libreoffice.org/51473 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'helpcompiler/source/HelpIndexer.cxx')
-rw-r--r--helpcompiler/source/HelpIndexer.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/helpcompiler/source/HelpIndexer.cxx b/helpcompiler/source/HelpIndexer.cxx
index 51966f4c71dc..870db09e0faa 100644
--- a/helpcompiler/source/HelpIndexer.cxx
+++ b/helpcompiler/source/HelpIndexer.cxx
@@ -60,8 +60,9 @@ bool HelpIndexer::indexDocuments()
// Index the identified help files
Document doc;
- for (std::set<OUString>::iterator i = d_files.begin(); i != d_files.end(); ++i) {
- helpDocument(*i, &doc);
+ for (auto const& elem : d_files)
+ {
+ helpDocument(elem, &doc);
writer.addDocument(&doc);
doc.clear();
}