Skip to content

Commit

Permalink
report: use const reference in node_report.cc
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
gengjiawen authored and targos committed May 4, 2019
1 parent b51dcf6 commit a55457c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_report.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a55457c

Please sign in to comment.