replace default reference captures, fix missing calls (#1153)

* forAll -> forEach

* replace default reference captures with more specific ones

* fix missing calls in fixXYZ/forEachSelectedWithRefresh
This commit is contained in:
Dennis Brakhane
2025-07-08 17:08:59 +02:00
committed by GitHub
parent 38caf1a5f0
commit 282b81c3d9
26 changed files with 452 additions and 452 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ void ExpressionWindow::Create(EditorComponent* _editor)
infoLabel.SetFitTextEnabled(true);
AddWidget(&infoLabel);
auto handleExpr = [&] (auto func) {
return [&] (auto args) {
auto handleExpr = [this] (auto func) {
return [this, func] (auto args) {
wi::scene::Scene& scene = editor->GetCurrentScene();
ExpressionComponent* expression_mastering = scene.expressions.GetComponent(entity);
if (expression_mastering != nullptr) {