refactor: use std ranges functions where applicable

This commit is contained in:
Jan committed 2024-03-24 20:49:15 +01:00
1 parent 132cccb971
commit 239001e6f2
42 files changed
+251 -295

No files matched your search

@@ -981,7 +981,7 @@ void DefinesStreamProxy::ProcessNestedMacros(ParserLine& line, unsigned& linePos
const Define* nestedMacro = nullptr;
while (FindNextMacro(input, pos, defineStart, nestedMacro))
{
if (std::find(callstack.cbegin(), callstack.cend(), nestedMacro) != callstack.cend())
if (std::ranges::find(std::as_const(callstack), nestedMacro) != callstack.cend())
{
// Do not expand recursively
continue;