From 0bbd21f25a20e6148c2166dc21fd8da406d44c5f Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 3 Sep 2023 11:44:48 +0200 Subject: [PATCH] fix: Build issues with older standard libraries --- .../builtin/source/content/views/view_data_processor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/builtin/source/content/views/view_data_processor.cpp b/plugins/builtin/source/content/views/view_data_processor.cpp index bacca53b8..ab3c3b2f6 100644 --- a/plugins/builtin/source/content/views/view_data_processor.cpp +++ b/plugins/builtin/source/content/views/view_data_processor.cpp @@ -515,13 +515,14 @@ namespace hex::plugin::builtin { workspace.dataOverlays.clear(); // Create a new overlay for each end node - for (u32 i = 0; i < workspace.endNodes.size(); i++) + for (u32 i = 0; i < workspace.endNodes.size(); i += 1) workspace.dataOverlays.push_back(ImHexApi::Provider::get()->newOverlay()); } // Set the current overlay of each end node to the corresponding overlay - for (auto [index, endNode] : workspace.endNodes | std::views::enumerate) { - endNode->setCurrentOverlay(workspace.dataOverlays[index]); + size_t overlayIndex = 0; + for (auto endNode : workspace.endNodes) { + endNode->setCurrentOverlay(workspace.dataOverlays[overlayIndex]); } // Reset any potential node errors