1
0
mirror of synced 2024-11-28 17:40:51 +01:00

fix: Build issues

This commit is contained in:
WerWolv 2022-08-24 14:55:11 +02:00
parent e86ca29b8c
commit 90adacab9f
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 837344b00224c0e16bae292ed5f3931b1717d4f0
Subproject commit 0bc05caccb46082b8456444668c574e1c13f4bd1

View File

@ -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<Region> findSequence(ViewHexEditor *editor, const std::vector<u8> &sequence, bool backwards) {
std::optional<Region> findSequence(const std::vector<u8> &sequence, bool backwards) {
hex::prv::BufferedReader reader(ImHexApi::Provider::get());
reader.seek(this->m_searchPosition.value_or(0x00));