diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-28 15:13:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-29 07:17:37 +0100 |
commit | 21de55596c0fdc2be736c6d0369bd9d3783020be (patch) | |
tree | 07d0f0cd54690e54405fe574c572cb2be74a3336 /helpcompiler | |
parent | da9fb5d6d9ebf9363981c370ce937d8848989fcb (diff) |
remove unnecessary "if (!empty()" checks before loops
found with
git grep -n -A4 'if.*!.*empty' | grep -B3 -P
'(\bfor)|(\bwhile)|(\bdo)'
Change-Id: I582235b7cf977a0f9fb4099eb306fdb4a07b5334
Reviewed-on: https://gerrit.libreoffice.org/64169
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'helpcompiler')
-rw-r--r-- | helpcompiler/source/HelpLinker.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index 95bf39d764d1..86d2d254bef2 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -372,7 +372,7 @@ void HelpLinker::link() addBookmark( pFileDbBase_DBHelp, documentPath, fileB, std::string(), jarfileB, titleB); const std::vector<std::string> *hidlist = streamTable.appl_hidlist.get(); - if (hidlist && !hidlist->empty()) + if (hidlist) { // now iterate over all elements of the hidlist for (auto & elem : *hidlist) @@ -413,7 +413,7 @@ void HelpLinker::link() // and last the helptexts const Stringtable *helpTextHash = streamTable.appl_helptexts.get(); - if (helpTextHash && !helpTextHash->empty()) + if (helpTextHash) { for (auto const& elem : *helpTextHash) { |