mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-09 22:38:06 -05:00
refactor: use std ranges functions where applicable
This commit is contained in:
@ -61,10 +61,9 @@ bool MockParserLineStream::IsOpen() const
|
||||
|
||||
bool MockParserLineStream::Eof() const
|
||||
{
|
||||
return !std::any_of(m_include_positions.begin(),
|
||||
m_include_positions.end(),
|
||||
[](const IncludePos& pos)
|
||||
{
|
||||
return pos.m_pos < pos.m_lines.size();
|
||||
});
|
||||
return !std::ranges::any_of(m_include_positions,
|
||||
[](const IncludePos& pos)
|
||||
{
|
||||
return pos.m_pos < pos.m_lines.size();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user