Skip to content
Snippets Groups Projects
Commit c36c955f authored by Edward Brown's avatar Edward Brown
Browse files

Re #22183: Fixed type conversion in for loops.

parent dae0ff57
No related branches found
No related tags found
No related merge requests found
......@@ -410,7 +410,7 @@ public:
clusterThreeIndexes.end());
// Add elevated signal to the workspace at cluster indexes.
for (unsigned long &allClusterIndexe : allClusterIndexes) {
for (auto &allClusterIndexe : allClusterIndexes) {
inWS->setSignalAt(allClusterIndexe, raisedSignal);
}
......
......@@ -681,7 +681,7 @@ public:
neighbourIndexes = it->findNeighbourIndexesFaceTouching();
TS_ASSERT_EQUALS(4, neighbourIndexes.size());
std::vector<size_t> expected_neighbours = {0, 2, 5, 17};
for (unsigned long &expected_neighbour : expected_neighbours) {
for (auto &expected_neighbour : expected_neighbours) {
TS_ASSERT(doesContainIndex(neighbourIndexes, expected_neighbour));
}
......@@ -693,7 +693,7 @@ public:
// Is completely enclosed
expected_neighbours = {17, 20, 22, 25, 5, 37};
for (unsigned long &expected_neighbour : expected_neighbours) {
for (auto &expected_neighbour : expected_neighbours) {
TS_ASSERT(doesContainIndex(neighbourIndexes, expected_neighbour));
}
......@@ -704,7 +704,7 @@ public:
// Is on edge
expected_neighbours = {47, 59, 62};
for (unsigned long &expected_neighbour : expected_neighbours) {
for (auto &expected_neighbour : expected_neighbours) {
TS_ASSERT(doesContainIndex(neighbourIndexes, expected_neighbour));
}
......@@ -759,7 +759,7 @@ public:
TS_ASSERT_EQUALS(11, neighbourIndexes.size());
std::vector<size_t> expected_neighbours = {0, 2, 4, 5, 6, 16,
17, 18, 20, 21, 22, 22};
for (unsigned long &expected_neighbour : expected_neighbours) {
for (auto &expected_neighbour : expected_neighbours) {
TS_ASSERT(doesContainIndex(neighbourIndexes, expected_neighbour));
}
......@@ -772,7 +772,7 @@ public:
expected_neighbours = {0, 1, 2, 4, 5, 6, 8, 9, 10, 16, 17, 18, 22,
20, 24, 25, 26, 32, 33, 34, 37, 38, 36, 41, 40, 42};
for (unsigned long &expected_neighbour : expected_neighbours) {
for (auto &expected_neighbour : expected_neighbours) {
TS_ASSERT(doesContainIndex(neighbourIndexes, expected_neighbour));
}
......@@ -783,7 +783,7 @@ public:
// Is on edge
expected_neighbours = {42, 43, 46, 47, 58, 59, 62};
for (unsigned long &expected_neighbour : expected_neighbours) {
for (auto &expected_neighbour : expected_neighbours) {
TS_ASSERT(doesContainIndex(neighbourIndexes, expected_neighbour));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment