From 881a379fb40e464b7bcffe8fc23a3580012aef3a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 10 May 2024 23:02:39 +0200 Subject: [PATCH] fix: Compile error due to un-unpacked expected value --- plugins/builtin/source/content/providers/intel_hex_provider.cpp | 2 +- .../builtin/source/content/providers/motorola_srec_provider.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/builtin/source/content/providers/intel_hex_provider.cpp b/plugins/builtin/source/content/providers/intel_hex_provider.cpp index ce1e02100..631d786c7 100644 --- a/plugins/builtin/source/content/providers/intel_hex_provider.cpp +++ b/plugins/builtin/source/content/providers/intel_hex_provider.cpp @@ -206,7 +206,7 @@ namespace hex::plugin::builtin { } u64 maxAddress = 0x00; - for (auto &[address, bytes] : data) { + for (auto &[address, bytes] : data.value()) { auto endAddress = (address + bytes.size()) - 1; m_data.emplace({ address, endAddress }, std::move(bytes)); diff --git a/plugins/builtin/source/content/providers/motorola_srec_provider.cpp b/plugins/builtin/source/content/providers/motorola_srec_provider.cpp index 3c9598749..c98353953 100644 --- a/plugins/builtin/source/content/providers/motorola_srec_provider.cpp +++ b/plugins/builtin/source/content/providers/motorola_srec_provider.cpp @@ -185,7 +185,7 @@ namespace hex::plugin::builtin { } u64 maxAddress = 0x00; - for (auto &[address, bytes] : data) { + for (auto &[address, bytes] : data.value()) { auto endAddress = (address + bytes.size()) - 1; m_data.emplace({ address, endAddress }, std::move(bytes));