diff --git a/src/node_report.cc b/src/node_report.cc index 8a257b0c9c6ef4..d917a772812b27 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();