[style] convert to C++11 for loops (#5263)

This commit is contained in:
Simon Lin
2020-07-21 09:41:40 -07:00
committed by GitHub
parent 57ee45be21
commit 5e9b2818eb
31 changed files with 284 additions and 309 deletions
+2 -2
View File
@@ -46,9 +46,9 @@ void TestMessage(void)
messagePool = &instance->Get<ot::MessagePool>();
for (unsigned i = 0; i < sizeof(writeBuffer); i++)
for (uint8_t &b : writeBuffer)
{
writeBuffer[i] = static_cast<uint8_t>(random());
b = static_cast<uint8_t>(random());
}
VerifyOrQuit((message = messagePool->New(ot::Message::kTypeIp6, 0)) != nullptr, "Message::New failed");