diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-03-10 17:23:56 +0800 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-03-21 07:23:44 +0100 |
commit | f091d4e840fa5208bcab0c1f98743a667a995094 (patch) | |
tree | 0acd16389d0e51fb8403672d2eca0c561030f48d /src/node_native_module.cc | |
parent | f47adfbda5c06263a78c0c74a705b0d5d3cd2944 (diff) | |
download | android-node-v8-f091d4e840fa5208bcab0c1f98743a667a995094.tar.gz android-node-v8-f091d4e840fa5208bcab0c1f98743a667a995094.tar.bz2 android-node-v8-f091d4e840fa5208bcab0c1f98743a667a995094.zip |
src: apply clang-tidy rule modernize-use-emplace
PR-URL: https://github.com/nodejs/node/pull/26564
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/node_native_module.cc')
-rw-r--r-- | src/node_native_module.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_native_module.cc b/src/node_native_module.cc index 33df8c0aa8..41f1588c4d 100644 --- a/src/node_native_module.cc +++ b/src/node_native_module.cc @@ -92,7 +92,7 @@ void NativeModuleLoader::ModuleIdsGetter( ids.reserve(source_.size()); for (auto const& x : source_) { - ids.push_back(OneByteString(isolate, x.first.c_str(), x.first.size())); + ids.emplace_back(OneByteString(isolate, x.first.c_str(), x.first.size())); } info.GetReturnValue().Set(Array::New(isolate, ids.data(), ids.size())); |