Skip to content

Commit b640eae

Browse files
author
Amanda Butler
authored
Merge pull request #1183 from kjbracey-arm/sharedptr_nullptr
SharedPtr: NULL -> nullptr
2 parents 5937bfc + f3cb34d commit b640eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/platform/SharedPtr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ void test() {
2727
// Increase reference count
2828
SharedPtr<MyStruct> ptr2( ptr );
2929
30-
ptr = NULL; // Reference to the struct instance is still held by ptr2
30+
ptr = nullptr; // Reference to the struct instance is still held by ptr2
3131
32-
ptr2 = NULL; // The raw pointer is freed
32+
ptr2 = nullptr; // The raw pointer is freed
3333
}
3434
```

0 commit comments

Comments
 (0)