From af40beeed92d96727581c02cbcc65bcc74c40a4f Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Thu, 25 Jul 2024 22:57:57 -0400 Subject: [PATCH] Fix lambda capture warnings --- src/editor/graph/pins/graph_node_pin_node_path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/graph/pins/graph_node_pin_node_path.cpp b/src/editor/graph/pins/graph_node_pin_node_path.cpp index 136c773c..4d02e320 100644 --- a/src/editor/graph/pins/graph_node_pin_node_path.cpp +++ b/src/editor/graph/pins/graph_node_pin_node_path.cpp @@ -170,8 +170,8 @@ void OrchestratorGraphNodePinNodePath::_show_property_dialog() accept->set_exclusive(true); add_child(accept); - accept->connect("canceled", callable_mp_lambda(this, [=, this] { accept->queue_free(); })); - accept->connect("confirmed", callable_mp_lambda(this, [=, this] { accept->queue_free(); })); + accept->connect("canceled", callable_mp_lambda(this, [&] { accept->queue_free(); })); + accept->connect("confirmed", callable_mp_lambda(this, [&] { accept->queue_free(); })); accept->popup_centered(); } return;