aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-10-04 13:53:40 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-10-12 11:27:19 +0200
commitfa05a726c225dc65dee79367bb67f099ae4f99e6 (patch)
tree8bf1f8a82fcf024fe110ac76f9563acf2b1132cf /src/qt
parent4a5aae9330780c3740e27cc511f7cba1fab745b9 (diff)
downloadbitcoin-fa05a726c225dc65dee79367bb67f099ae4f99e6.tar.xz
tidy: modernize-use-emplace
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/rpcconsole.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 998a4e5cbe..ceaa3ac46b 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -169,7 +169,7 @@ public:
bool RPCConsole::RPCParseCommandLine(interfaces::Node* node, std::string &strResult, const std::string &strCommand, const bool fExecute, std::string * const pstrFilteredOut, const WalletModel* wallet_model)
{
std::vector< std::vector<std::string> > stack;
- stack.push_back(std::vector<std::string>());
+ stack.emplace_back();
enum CmdParseState
{
@@ -197,7 +197,7 @@ bool RPCConsole::RPCParseCommandLine(interfaces::Node* node, std::string &strRes
}
// Make sure stack is not empty before adding something
if (stack.empty()) {
- stack.push_back(std::vector<std::string>());
+ stack.emplace_back();
}
stack.back().push_back(strArg);
};
@@ -206,7 +206,7 @@ bool RPCConsole::RPCParseCommandLine(interfaces::Node* node, std::string &strRes
if (nDepthInsideSensitive) {
if (!--nDepthInsideSensitive) {
assert(filter_begin_pos);
- filter_ranges.push_back(std::make_pair(filter_begin_pos, chpos));
+ filter_ranges.emplace_back(filter_begin_pos, chpos);
filter_begin_pos = 0;
}
}
@@ -306,7 +306,7 @@ bool RPCConsole::RPCParseCommandLine(interfaces::Node* node, std::string &strRes
if (nDepthInsideSensitive) {
++nDepthInsideSensitive;
}
- stack.push_back(std::vector<std::string>());
+ stack.emplace_back();
}
// don't allow commands after executed commands on baselevel