mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace push_back with emplace_back where it makes sense
This commit is contained in:
1 parent
871ea22bb9
commit
2f6dc2e773
15 files changed
+68
-75
No files matched your search
@@ -91,7 +91,7 @@ string dev::quotedAlternativesList(vector<string> const& suggestions)
|
||||
vector<string> quotedSuggestions;
|
||||
|
||||
for (auto& suggestion: suggestions)
|
||||
quotedSuggestions.push_back("\"" + suggestion + "\"");
|
||||
quotedSuggestions.emplace_back("\"" + suggestion + "\"");
|
||||
|
||||
return joinHumanReadable(quotedSuggestions, ", ", " or ");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user