diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-16 06:15:01 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-16 06:15:01 +0100 |
commit | 1b01f9405fb902ef898dd64aea41af0ffbd9edec (patch) | |
tree | ef19898d589a926501489797b0dc663b694da5b8 /editor/app.cpp | |
parent | cb0069f839db3d8f4748dd8e39f0d3830bfdf352 (diff) |
a
Diffstat (limited to 'editor/app.cpp')
-rw-r--r-- | editor/app.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<typename T, typename U> 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) |