Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgengjiawen <technicalcute@gmail.com>2020-01-08 16:21:56 +0300
committerMyles Borins <mylesborins@google.com>2020-01-16 09:39:13 +0300
commita5311bd757c74148e5cf4ea847e957bf2b578368 (patch)
treee5a5082011ef8b048f457b36fac80b6b7e7d2e81 /src/node.cc
parentf8e805985e58866d8495386e57a1bba761da27d1 (diff)
tools: add clang-tidy rule in src
PR-URL: https://github.com/nodejs/node/pull/26840 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc
index 461bdc7f666..7da1fbb6689 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -877,7 +877,7 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv,
}
if (will_start_new_arg) {
- env_argv.push_back(std::string(1, c));
+ env_argv.emplace_back(std::string(1, c));
will_start_new_arg = false;
} else {
env_argv.back() += c;