[style] replace NULL with nullptr (#5109)

This commit is contained in:
Jonathan Hui
2020-06-17 22:44:54 -07:00
committed by GitHub
parent 3b362071e5
commit 1326d64a64
209 changed files with 1981 additions and 1906 deletions
+3 -3
View File
@@ -64,7 +64,7 @@ void TestMacAddress(void)
uint8_t buffer[OT_EXT_ADDRESS_SIZE];
instance = testInitInstance();
VerifyOrQuit(instance != NULL, "NULL instance\n");
VerifyOrQuit(instance != nullptr, "nullptr instance\n");
// Mac::ExtAddress
@@ -201,7 +201,7 @@ void TestMacNetworkName(void)
VerifyOrQuit(networkName.Set(Mac::NameData(kLongName, sizeof(kLongName) - 1)) == OT_ERROR_ALREADY,
"NetworkName::Set() accepted same name without returning OT_ERROR_ALREADY");
SuccessOrQuit(networkName.Set(Mac::NameData(NULL, 0)), "NetworkName::Set() failed");
SuccessOrQuit(networkName.Set(Mac::NameData(nullptr, 0)), "NetworkName::Set() failed");
CompareNetworkName(networkName, kEmptyName);
SuccessOrQuit(networkName.Set(Mac::NameData(kName1, sizeof(kName1))), "NetworkName::Set() failed");
@@ -363,7 +363,7 @@ void TestMacChannelMask(void)
mask1.Clear();
VerifyOrQuit(mask1.IsEmpty(), "ChannelMask.IsEmpty failed");
VerifyChannelMaskContent(mask1, NULL, 0);
VerifyChannelMaskContent(mask1, nullptr, 0);
for (uint16_t index = 0; index < sizeof(channels1); index++)
{