summaryrefslogtreecommitdiff
path: root/core/variant/callable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/variant/callable.cpp')
-rw-r--r--core/variant/callable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant/callable.cpp b/core/variant/callable.cpp
index ca6f3d615e..2a3a9a4f1a 100644
--- a/core/variant/callable.cpp
+++ b/core/variant/callable.cpp
@@ -407,8 +407,8 @@ Array Signal::get_connections() const {
object->get_signal_connection_list(name, &connections);
Array arr;
- for (List<Object::Connection>::Element *E = connections.front(); E; E = E->next()) {
- arr.push_back(E->get());
+ for (Object::Connection &E : connections) {
+ arr.push_back(E);
}
return arr;
}