From 0aec3fffe1af9629da3e25d2351f5e6f7060c8b1 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 25 May 2025 22:21:40 +0200 Subject: [PATCH] fix: Unused lambda captures --- plugins/builtin/include/content/views/view_pattern_editor.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/builtin/include/content/views/view_pattern_editor.hpp b/plugins/builtin/include/content/views/view_pattern_editor.hpp index 52982a926..c075e1560 100644 --- a/plugins/builtin/include/content/views/view_pattern_editor.hpp +++ b/plugins/builtin/include/content/views/view_pattern_editor.hpp @@ -351,7 +351,7 @@ namespace hex::plugin::builtin { } } - auto createRuntime = [this, provider] { + auto createRuntime = [provider] { auto runtime = std::make_shared(); ContentRegistry::PatternLanguage::configureRuntime(*runtime, provider); @@ -360,7 +360,7 @@ namespace hex::plugin::builtin { ui::PopupNamedFileChooser::open( basePaths, paths, std::vector{ { "Pattern File", "hexpat" } }, false, - [this, provider, runtime = createRuntime()](const std::fs::path &path, const std::fs::path &adjustedPath) mutable -> std::string { + [this, runtime = createRuntime()](const std::fs::path &path, const std::fs::path &adjustedPath) mutable -> std::string { if (auto it = m_patternNames.find(path); it != m_patternNames.end()) { return it->second; }