From 90adacab9ff1f700f59deb9e505c54856aed960b Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 24 Aug 2022 14:55:11 +0200 Subject: [PATCH] fix: Build issues --- lib/external/pattern_language | 2 +- plugins/builtin/source/content/views/view_hex_editor.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/external/pattern_language b/lib/external/pattern_language index 837344b00..0bc05cacc 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit 837344b00224c0e16bae292ed5f3931b1717d4f0 +Subproject commit 0bc05caccb46082b8456444668c574e1c13f4bd1 diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index afcbfaa0c..ea9d79eed 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -202,7 +202,7 @@ namespace hex::plugin::builtin { if (!this->m_searchTask.isRunning() && !searchSequence.empty() && this->m_shouldSearch) { this->m_searchTask = TaskManager::createTask("hex.builtin.common.processing", ImHexApi::Provider::get()->getActualSize(), [this, editor, searchSequence](auto &) { - if (auto region = this->findSequence(editor, searchSequence, this->m_backwards); region.has_value()) { + if (auto region = this->findSequence(searchSequence, this->m_backwards); region.has_value()) { TaskManager::doLater([editor, region]{ editor->setSelection(region->getStartAddress(), region->getEndAddress()); editor->jumpToSelection(); @@ -253,7 +253,7 @@ namespace hex::plugin::builtin { ImGui::EndDisabled(); } - std::optional findSequence(ViewHexEditor *editor, const std::vector &sequence, bool backwards) { + std::optional findSequence(const std::vector &sequence, bool backwards) { hex::prv::BufferedReader reader(ImHexApi::Provider::get()); reader.seek(this->m_searchPosition.value_or(0x00));