aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-11-27 13:55:47 +0100
committerShauren <shauren.trinity@gmail.com>2024-11-27 13:55:47 +0100
commit898a941b103c7f1e837741ae8c3480d92e4f7aa3 (patch)
tree0031bc491eab7d1158ca2995ecc13e5fbdbf082e /src
parent2a6fd947ded9fb6333de0e50b7216602cc9c1255 (diff)
Adjust previous commit to compile with clang on systems that have gcc 12 installed
Diffstat (limited to 'src')
-rw-r--r--src/common/Utilities/Util.cpp2
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)