From 765bdb1f2ca2bac69d44664e09f0323ddb615515 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Mon, 11 Nov 2024 17:34:56 -0700 Subject: [PATCH] Fix typos. --- src/utils/nodes.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/nodes.cpp b/src/utils/nodes.cpp index e8550dd..1c881d0 100644 --- a/src/utils/nodes.cpp +++ b/src/utils/nodes.cpp @@ -312,18 +312,18 @@ FeatherNode Nodes::pickEligibleNode() { return rtn; } - QVector node_indeces; + QVector node_indices; int i = 0; for (const auto &node: nodes) { - node_indeces.push_back(i); + node_indices.push_back(i); i++; } unsigned seed = std::chrono::system_clock::now().time_since_epoch().count(); - std::shuffle(node_indeces.begin(), node_indeces.end(), std::default_random_engine(seed)); + std::shuffle(node_indices.begin(), node_indices.end(), std::default_random_engine(seed)); // Pick random eligible node int mode_height = this->modeHeight(nodes); - for (int index : node_indeces) { + for (int index : node_indices) { const FeatherNode &node = nodes.at(index); // This may fail to detect bad nodes if cached nodes are used @@ -359,7 +359,7 @@ FeatherNode Nodes::pickEligibleNode() { // All nodes tried, and none eligible // Don't show node exhaustion warning if single custom node is used - if (wsMode || node_indeces.size() > 1) { + if (wsMode || node_indices.size() > 1) { this->exhausted(); } return rtn;