summaryrefslogtreecommitdiffstats
path: root/tests/test_math.cpp
diff options
context:
space:
mode:
authorLightning_A <aaronjrecord@gmail.com>2021-08-09 14:13:42 -0600
committerLightning_A <aaronjrecord@gmail.com>2021-09-30 15:09:12 -0600
commitc63b18507d21b8a213c073bced9057b571cdcd7a (patch)
tree96b8f7532ae5d923b75bfbac8d6763015b6646bb /tests/test_math.cpp
parente4dfa69bcf58e4d50acdde32c590364e43fce3ab (diff)
downloadredot-engine-c63b18507d21b8a213c073bced9057b571cdcd7a.tar.gz
Use range iterators for `Map`
Diffstat (limited to 'tests/test_math.cpp')
-rw-r--r--tests/test_math.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_math.cpp b/tests/test_math.cpp
index a44040dfe2..72272382ce 100644
--- a/tests/test_math.cpp
+++ b/tests/test_math.cpp
@@ -296,8 +296,8 @@ public:
if (tk == TK_IDENTIFIER) {
String name = value;
if (use_next_class || p_known_class_name == name) {
- for (Map<int, String>::Element *E = namespace_stack.front(); E; E = E->next()) {
- class_name += E->get() + ".";
+ for (const KeyValue<int, String> &E : namespace_stack) {
+ class_name += E.value + ".";
}
class_name += String(value);
break;