Cleanup: remove unnecessary lambda capture

This commit is contained in:
Jacques Lucke 2021-05-25 13:10:30 +02:00
parent 768d4c6cfe
commit 405534c756
1 changed files with 2 additions and 2 deletions

View File

@ -1025,7 +1025,7 @@ class GeometryNodesEvaluator {
/* Get all origin sockets, because we have to tag those as required as well. */
Vector<DSocket> origin_sockets;
input_socket.foreach_origin_socket(
[&, this](const DSocket origin_socket) { origin_sockets.append(origin_socket); });
[&](const DSocket origin_socket) { origin_sockets.append(origin_socket); });
if (origin_sockets.is_empty()) {
/* If there are no origin sockets, just load the value from the socket directly. */
@ -1078,7 +1078,7 @@ class GeometryNodesEvaluator {
}
/* Notify origin nodes that might want to set its inputs as unused as well. */
socket.foreach_origin_socket([&, this](const DSocket origin_socket) {
socket.foreach_origin_socket([&](const DSocket origin_socket) {
if (origin_socket->is_input()) {
/* Values from these sockets are loaded directly from the sockets, so there is no node to
* notify. */