Modernize std::sort with ranges
This commit is contained in:
1 parent
bcaf665d14
commit
ebf7cebc32
5 files changed
+13
-14
No files matched your search
@@ -151,7 +151,7 @@ ScissorResult::ScissorResult(const BPMemory& bpmemory, std::pair<float, float> v
|
||||
}
|
||||
|
||||
auto cmp = [&](const ScissorRect& lhs, const ScissorRect& rhs) { return IsWorse(lhs, rhs); };
|
||||
std::sort(m_result.begin(), m_result.end(), cmp);
|
||||
std::ranges::sort(m_result, cmp);
|
||||
}
|
||||
|
||||
ScissorRect ScissorResult::Best() const
|
||||
|
||||
Reference in new issue
Block a user