diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-03-17 22:06:55 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-03-18 09:13:59 +0100 |
commit | 93f8b703a0f0287354723855afe8e65297ecf716 (patch) | |
tree | 1edb1c9599937726bdaef63fb5443559ec46d7a5 /helpcompiler/source/HelpCompiler.cxx | |
parent | remove define for GraphicObject url and inline the string (diff) | |
download | core-93f8b703a0f0287354723855afe8e65297ecf716.tar.gz core-93f8b703a0f0287354723855afe8e65297ecf716.zip |
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/HelpCompiler.cxx')
-rw-r--r-- | helpcompiler/source/HelpCompiler.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/helpcompiler/source/HelpCompiler.cxx b/helpcompiler/source/HelpCompiler.cxx index 92856d04cf93..cc8c319e58a5 100644 --- a/helpcompiler/source/HelpCompiler.cxx +++ b/helpcompiler/source/HelpCompiler.cxx @@ -418,10 +418,9 @@ void myparser::traverse( xmlNodePtr parentNode ) //TODO: make these asserts and flush out all our broken help ids SAL_WARN_IF(hidstr.empty(), "helpcompiler", "hid='' for text:" << text); SAL_WARN_IF(!hidstr.empty() && extendedHelpText.empty(), "helpcompiler", "hid='.' with no hid bookmark branches in file: " << fileName + " for text: " << text); - HashSet::const_iterator aEnd = extendedHelpText.end(); - for (HashSet::const_iterator iter = extendedHelpText.begin(); iter != aEnd; ++iter) + for (auto const& elem : extendedHelpText) { - std::string name = *iter; + std::string name = elem; (*helptexts)[name] = text; } } |