Skip to content

Commit

Permalink
Fixed NULL to nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
timcanham committed Sep 26, 2024
1 parent 7ab7857 commit 108b908
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Svc/DpCatalog/test/ut/DpCatalogTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ namespace Svc {
DpCatalog::DpStateEntry* input,
DpCatalog::DpStateEntry* output,
NATIVE_INT_TYPE numEntries) {
ASSERT_TRUE(input != NULL);
ASSERT_TRUE(output != NULL);
ASSERT_TRUE(input != nullptr);
ASSERT_TRUE(output != nullptr);
ASSERT_TRUE(numEntries > 0);

Fw::MallocAllocator alloc;
Expand All @@ -81,15 +81,15 @@ namespace Svc {
DpCatalog::DpBtreeNode* res = this->component.findNextTreeNode();
if (entry == numEntries) {
// final request should indicate empty
ASSERT_TRUE(res == NULL);
ASSERT_TRUE(res == nullptr);
break;
} else if (output[entry].record.getstate() == Fw::DpState::TRANSMITTED) {
// if transmitted, should not be returned
ASSERT_TRUE(res == NULL);
ASSERT_TRUE(res == nullptr);
// continue to next entry
continue;
} else {
ASSERT_TRUE(res != NULL);
ASSERT_TRUE(res != nullptr);
}
// should match expected entry
ASSERT_EQ(res->entry.record,output[entry].record);
Expand Down

0 comments on commit 108b908

Please sign in to comment.