mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-12-06 06:58:39 +00:00
refactor: use std ranges functions where applicable
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user