mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
tidy: modernize-use-emplace
This commit is contained in:
parent
4a5aae9330
commit
fa05a726c2
47 changed files with 167 additions and 162 deletions
|
|
@ -88,7 +88,7 @@ std::string CRPCTable::help(const std::string& strCommand, const JSONRPCRequest&
|
|||
vCommands.reserve(mapCommands.size());
|
||||
|
||||
for (const auto& entry : mapCommands)
|
||||
vCommands.push_back(make_pair(entry.second.front()->category + entry.first, entry.second.front()));
|
||||
vCommands.emplace_back(entry.second.front()->category + entry.first, entry.second.front());
|
||||
sort(vCommands.begin(), vCommands.end());
|
||||
|
||||
JSONRPCRequest jreq = helpreq;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue