1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:47:45 +00:00

Kernel: Use range-for wherever possible

This commit is contained in:
Daniel Bertalan 2021-07-05 18:49:51 +02:00 committed by Gunnar Beutner
parent c6fafd3e90
commit 949ea9cb4a
3 changed files with 4 additions and 5 deletions

View file

@ -185,8 +185,7 @@ public:
template<typename F>
IterationDecision for_each_framebuffer(F f)
{
for (size_t i = 0; i < VIRTIO_GPU_MAX_SCANOUTS; i++) {
auto& scanout = m_scanouts[i];
for (auto& scanout : m_scanouts) {
if (!scanout.framebuffer)
continue;
IterationDecision decision = f(*scanout.framebuffer, *scanout.console);