get rid of clang warning (#1364)

lambda capture 'this' is not used
This commit is contained in:
Dennis Brakhane
2025-12-13 08:58:51 +01:00
committed by GitHub
parent 5c41b0fae3
commit fe210e1d20
+2 -3
View File
@@ -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()
}
}
}