diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-11-27 13:55:47 +0100 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-11-28 17:24:48 +0100 |
commit | c9a7934b2853f45f5d4f75e3ba6b376784a0d25c (patch) | |
tree | fcd9d125474dec4eb9e471065e86a62666661454 | |
parent | d71468e8b1540c1f1c91e63f2eba291a3c689a6a (diff) |
Adjust previous commit to compile with clang on systems that have gcc 12 installed
(cherry picked from commit 898a941b103c7f1e837741ae8c3480d92e4f7aa3)
-rw-r--r-- | src/common/Utilities/Util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Utilities/Util.cpp b/src/common/Utilities/Util.cpp index dded1af889f..93bc3b853a5 100644 --- a/src/common/Utilities/Util.cpp +++ b/src/common/Utilities/Util.cpp @@ -862,7 +862,7 @@ bool StringEqualI(std::string_view a, std::string_view b) bool StringContainsStringI(std::string_view haystack, std::string_view needle) { return haystack.end() != - std::ranges::search(haystack, needle, {}, charToLower, charToLower).begin(); + std::search(haystack.begin(), haystack.end(), needle.begin(), needle.end(), [](char c1, char c2) { return charToLower(c1) == charToLower(c2); }); } bool StringCompareLessI(std::string_view a, std::string_view b) |