mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 17:29:01 +00:00
Kernel: Use range-for wherever possible
This commit is contained in:
parent
c6fafd3e90
commit
949ea9cb4a
Notes:
sideshowbarker
2024-07-18 10:06:24 +09:00
Author: https://github.com/BertalanD
Commit: 949ea9cb4a
Pull-request: https://github.com/SerenityOS/serenity/pull/8470
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gunnarbeutner ✅
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