mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
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:
parent
0c20aeabd3
commit
d632f625a2
@ -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("-")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user