App: apply std::ranges

This commit is contained in:
bofdahof
2025-03-12 17:46:30 +10:00
committed by Chris Hennes
parent f9fd8b299c
commit 59c3bbe5c2
9 changed files with 25 additions and 27 deletions

View File

@@ -74,7 +74,7 @@ std::pair<std::string, std::string> customSyntax(std::string_view strIn)
"title",
"visual"};
if (std::find(knowns.begin(), knowns.end(), rest) != knowns.end()) {
if (std::ranges::find(knowns, rest) != knowns.end()) {
return {rest, "null"};
}
return {};