mirror of
https://github.com/espressif/openthread.git
synced 2026-08-23 10:49:51 +00:00
[style] convert to C++11 for loops (#5263)
This commit is contained in:
@@ -86,12 +86,12 @@ void TestPool(EntryPool &aPool, bool aInitWithInstance)
|
||||
|
||||
VerifyOrQuit(aPool.GetSize() == kPoolSize, "Pool::GetSize() failed");
|
||||
|
||||
for (uint16_t i = 0; i < kPoolSize; i++)
|
||||
for (Entry *&entry : entries)
|
||||
{
|
||||
entries[i] = aPool.Allocate();
|
||||
VerifyOrQuit(entries[i] != nullptr, "Pool::Allocate() failed");
|
||||
entry = aPool.Allocate();
|
||||
VerifyOrQuit(entry != nullptr, "Pool::Allocate() failed");
|
||||
|
||||
VerifyEntry(aPool, *entries[i], aInitWithInstance);
|
||||
VerifyEntry(aPool, *entry, aInitWithInstance);
|
||||
}
|
||||
|
||||
for (uint16_t numEntriesToFree = 1; numEntriesToFree <= kPoolSize; numEntriesToFree++)
|
||||
|
||||
Reference in New Issue
Block a user