From 696612385a530de7d7b13b05e156483c85c7a845 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 29 Mar 2024 16:34:01 +0100 Subject: [PATCH] fix: Use `std::ranges::find` instead of `std::ranges::contains` for now --- plugins/builtin/source/content/ui_items.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/ui_items.cpp b/plugins/builtin/source/content/ui_items.cpp index 5ad4fc153..1d5fd6706 100644 --- a/plugins/builtin/source/content/ui_items.cpp +++ b/plugins/builtin/source/content/ui_items.cpp @@ -465,7 +465,8 @@ namespace hex::plugin::builtin { auto &tabProvider = providers[i]; const auto selectedProviderIndex = ImHexApi::Provider::getCurrentProviderIndex(); - if (std::ranges::contains(ImHexApi::Provider::impl::getClosingProviders(), tabProvider)) + const auto &closingProviders = ImHexApi::Provider::impl::getClosingProviders(); + if (std::ranges::find(closingProviders, tabProvider) != closingProviders.end()) continue; bool open = true;