chore: use emplace when possible (#37877)
This commit is contained in:
parent
3c0c4d5c27
commit
82442239bc
4 changed files with 9 additions and 9 deletions
|
@ -19,7 +19,7 @@ void ObjectCache::CacheProxiedObject(v8::Local<v8::Value> from,
|
|||
auto obj = from.As<v8::Object>();
|
||||
int hash = obj->GetIdentityHash();
|
||||
|
||||
proxy_map_[hash].push_front(std::make_pair(from, proxy_value));
|
||||
proxy_map_[hash].emplace_front(from, proxy_value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue