Skip to content

Commit

Permalink
cli/cmdlineparser.cpp: removed condition that is always true (#6576)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy authored Jul 8, 2024
1 parent 747862f commit 73682da
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions cli/cmdlineparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,15 @@ static bool addFilesToList(const std::string& fileList, std::vector<std::string>
return false;
files = &infile;
}
if (files && *files) {
std::string fileName;
std::string fileName;
// cppcheck-suppress accessMoved - FP
while (std::getline(*files, fileName)) { // next line
// cppcheck-suppress accessMoved - FP
while (std::getline(*files, fileName)) { // next line
// cppcheck-suppress accessMoved - FP
if (!fileName.empty()) {
pathNames.emplace_back(std::move(fileName));
}
if (!fileName.empty()) {
pathNames.emplace_back(std::move(fileName));
}
}

return true;
}

Expand Down

0 comments on commit 73682da

Please sign in to comment.