Apply modernize-use-emplace.

This commit is contained in:
Alexander Arlt
2020-04-02 17:35:48 -05:00
parent 82f57f0465
commit 90bb1d8a7c
14 changed files with 33 additions and 49 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ pair<
for (auto const& scope: m_scopes)
{
// Copy over all functions.
newScopes.push_back({});
newScopes.emplace_back();
for (auto const& [name, funDef]: scope)
if (funDef)
newScopes.back().emplace(name, funDef);