mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
Kernel: Use range-for wherever possible
This commit is contained in:
parent
c6fafd3e90
commit
949ea9cb4a
3 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue