Rename lambda argument name to prevent shadowing.

pull/308/head
Pavel Janík 8 years ago
parent 25720fc394
commit 7df5e382e5

@ -170,12 +170,12 @@ bool RPCConsole::RPCParseCommandLine(std::string &strResult, const std::string &
size_t filter_begin_pos = 0, chpos; size_t filter_begin_pos = 0, chpos;
std::vector<std::pair<size_t, size_t>> filter_ranges; std::vector<std::pair<size_t, size_t>> filter_ranges;
auto add_to_current_stack = [&](const std::string& curarg) { auto add_to_current_stack = [&](const std::string& strArg) {
if (stack.back().empty() && (!nDepthInsideSensitive) && historyFilter.contains(QString::fromStdString(curarg), Qt::CaseInsensitive)) { if (stack.back().empty() && (!nDepthInsideSensitive) && historyFilter.contains(QString::fromStdString(strArg), Qt::CaseInsensitive)) {
nDepthInsideSensitive = 1; nDepthInsideSensitive = 1;
filter_begin_pos = chpos; filter_begin_pos = chpos;
} }
stack.back().push_back(curarg); stack.back().push_back(strArg);
}; };
auto close_out_params = [&]() { auto close_out_params = [&]() {

Loading…
Cancel
Save