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; }