summaryrefslogtreecommitdiffstats
path: root/scene/gui
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-10 12:12:34 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-10 12:12:34 -0600
commit90ce26a27b194186f02e2eba2aaf56718409a28f (patch)
treef472e398944cc03d234d3ead186dc12d9da50dd9 /scene/gui
parent560dfc738da13db0f8f7f8d4d9fbc1d6446aa006 (diff)
parenta47daa0a44900a4246cc8f71041593590c86a711 (diff)
downloadredot-engine-90ce26a27b194186f02e2eba2aaf56718409a28f.tar.gz
Merge pull request #94889 from rune-scape/no-const-list-erase
Remove const_cast in `List::erase`
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/graph_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp
index cb495f9d47..b1c47d858d 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -317,7 +317,7 @@ bool GraphEdit::is_node_connected(const StringName &p_from, int p_from_port, con
void GraphEdit::disconnect_node(const StringName &p_from, int p_from_port, const StringName &p_to, int p_to_port) {
ERR_FAIL_NULL_MSG(connections_layer, "connections_layer is missing.");
- for (const List<Ref<Connection>>::Element *E = connections.front(); E; E = E->next()) {
+ for (List<Ref<Connection>>::Element *E = connections.front(); E; E = E->next()) {
if (E->get()->from_node == p_from && E->get()->from_port == p_from_port && E->get()->to_node == p_to && E->get()->to_port == p_to_port) {
connection_map[p_from].erase(E->get());
connection_map[p_to].erase(E->get());