From 1b01f9405fb902ef898dd64aea41af0ffbd9edec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 16 Jan 2024 06:15:01 +0100 Subject: a --- editor/app.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/app.cpp b/editor/app.cpp index 766d96c8..c71d2888 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -111,7 +111,10 @@ static const char* const false_values[] = { "0", "false", "no", "n", "N", "off", template static inline bool find_arg(const T& list, const U& value) { - return std::find_if(std::cbegin(list), std::cend(list), [&](const auto& x) { return x == value; }) != std::cend(list); + for (const auto& x : list) + if (x == value) + return true; + return false; } static bool parse_bool(StringView name, const Corrade::Utility::Arguments& args) -- cgit v1.2.3