C++: Use nullptr.

This commit is contained in:
Geoffrey White
2024-05-08 14:04:21 +01:00
parent 3fd6bc9b5c
commit 088f8297b6
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
void g() {
MyTask *task = NULL;
MyTask *task = nullptr;
try
{

View File

@@ -1,5 +1,5 @@
void g() {
MyTask *task = NULL;
MyTask *task = nullptr;
try
{
@@ -8,7 +8,7 @@ void g() {
...
delete task;
task = NULL;
task = nullptr;
...
} catch (...) {