From fe210e1d20dee1f7ff66fea0e20e340149833978 Mon Sep 17 00:00:00 2001 From: Dennis Brakhane Date: Sat, 13 Dec 2025 08:58:51 +0100 Subject: [PATCH] get rid of clang warning (#1364) lambda capture 'this' is not used --- Editor/MaterialWindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Editor/MaterialWindow.cpp b/Editor/MaterialWindow.cpp index c3c4f3020..6ef8a5abd 100644 --- a/Editor/MaterialWindow.cpp +++ b/Editor/MaterialWindow.cpp @@ -221,8 +221,8 @@ void MaterialWindow::Create(EditorComponent* _editor) params.type = wi::helper::FileDialogParams::SAVE; params.description = "Material Preset (.ini)"; params.extensions = { "ini" }; - wi::helper::FileDialog(params, [this, material](std::string fileName) { - wi::eventhandler::Subscribe_Once(wi::eventhandler::EVENT_THREAD_SAFE_POINT, [this, material, fileName](uint64_t userdata) { + wi::helper::FileDialog(params, [material](std::string fileName) { + wi::eventhandler::Subscribe_Once(wi::eventhandler::EVENT_THREAD_SAFE_POINT, [material, fileName](uint64_t userdata) { const std::string filePath = wi::helper::ForceExtension(fileName, "ini"); wi::config::File config; config.Open(filePath.c_str()); @@ -1552,4 +1552,3 @@ void MaterialWindow::ResizeLayout() } } } -