summaryrefslogtreecommitdiffstats
path: root/tests/test_math.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-07-24 15:46:25 +0200
committerRémi Verschelde <rverschelde@gmail.com>2021-07-25 12:22:25 +0200
commitac3322b0af8f23e8e2dac8111200bc69b5604c9f (patch)
tree59a079f13b5c03c2dd3328a26c55f3618e6014f6 /tests/test_math.cpp
parenta0f7f42b842462646281f5c4c9a8db070e034adc (diff)
downloadredot-engine-ac3322b0af8f23e8e2dac8111200bc69b5604c9f.tar.gz
Use const references where possible for List range iterators
Diffstat (limited to 'tests/test_math.cpp')
-rw-r--r--tests/test_math.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_math.cpp b/tests/test_math.cpp
index d2960333cc..d0b9fdef4b 100644
--- a/tests/test_math.cpp
+++ b/tests/test_math.cpp
@@ -549,7 +549,7 @@ MainLoop *test() {
List<StringName> tl;
ClassDB::get_class_list(&tl);
- for (StringName &E : tl) {
+ for (const StringName &E : tl) {
Vector<uint8_t> m5b = E.operator String().md5_buffer();
hashes.push_back(hashes.size());
}