mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-07-06 03:01:50 +00:00
refactor: use std ranges functions where applicable
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user