mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
tidy: modernize-use-emplace
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user