From d632f625a2f229ab5a7e0540d49deb3a75d91028 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sat, 22 Feb 2020 19:28:49 -0500 Subject: [PATCH] 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 Commit-Queue: Nico Weber --- tools/crashpad_database_util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/crashpad_database_util.cc b/tools/crashpad_database_util.cc index 17a4771d..a0036163 100644 --- a/tools/crashpad_database_util.cc +++ b/tools/crashpad_database_util.cc @@ -561,7 +561,7 @@ int DatabaseUtilMain(int argc, char* argv[]) { } 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 file_reader; if (new_report_path.value() == FILE_PATH_LITERAL("-")) {