Fix a Wrange-loop-analysis warning in crashpad.

Bug: chromium:1039697
Change-Id: I2c69b8a3ba9c070eef8ff5b8f0207311b020935f
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2069637
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
This commit is contained in:
Nico Weber 2020-02-22 19:28:49 -05:00 committed by Commit Bot
parent 0c20aeabd3
commit d632f625a2

View File

@ -561,7 +561,7 @@ int DatabaseUtilMain(int argc, char* argv[]) {
} }
bool used_stdin = false; bool used_stdin = false;
for (const base::FilePath new_report_path : options.new_report_paths) { for (const base::FilePath& new_report_path : options.new_report_paths) {
std::unique_ptr<FileReaderInterface> file_reader; std::unique_ptr<FileReaderInterface> file_reader;
if (new_report_path.value() == FILE_PATH_LITERAL("-")) { if (new_report_path.value() == FILE_PATH_LITERAL("-")) {