Skip to content

Commit a55457c

Browse files
gengjiawentargos
authored andcommitted
report: use const reference in node_report.cc
PR-URL: #27479 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent b51dcf6 commit a55457c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_report.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ static void WriteNodeReport(Isolate* isolate,
231231
// Report out the command line.
232232
if (!node::per_process::cli_options->cmdline.empty()) {
233233
writer.json_arraystart("commandLine");
234-
for (std::string arg : node::per_process::cli_options->cmdline) {
234+
for (const std::string& arg : node::per_process::cli_options->cmdline) {
235235
writer.json_element(arg);
236236
}
237237
writer.json_arrayend();

0 commit comments

Comments
 (0)