diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-04-29 19:25:54 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-05-01 23:36:00 +0300 |
commit | 97ee1c99e2af5340d6833eb54ccda504d0d22ebf (patch) | |
tree | 76b74c9e7dae3bc6672abe7c76621dbfb80df98e /src/node_report.cc | |
parent | 61546b91eb91221e3f5afaaa2112f1166237cdd6 (diff) |
report: use const reference in node_report.cc
PR-URL: https://github.com/nodejs/node/pull/27479
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_report.cc')
-rw-r--r-- | src/node_report.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_report.cc b/src/node_report.cc index 8a257b0c9c6..d917a772812 100644 --- a/src/node_report.cc +++ b/src/node_report.cc @@ -231,7 +231,7 @@ static void WriteNodeReport(Isolate* isolate, // Report out the command line. if (!node::per_process::cli_options->cmdline.empty()) { writer.json_arraystart("commandLine"); - for (std::string arg : node::per_process::cli_options->cmdline) { + for (const std::string& arg : node::per_process::cli_options->cmdline) { writer.json_element(arg); } writer.json_arrayend(); |