1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:17:34 +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

@ -198,7 +198,7 @@ public:
, m_capabilities(capabilities)
{
if constexpr (PCI_DEBUG) {
for (auto capability : capabilities)
for (const auto& capability : capabilities)
dbgln("{} has capability {}", address, capability.id());
}
}