mirror of
https://github.com/github/codeql.git
synced 2026-04-20 06:24:03 +02:00
C++: Use nullptr.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
void g() {
|
||||
MyTask *task = NULL;
|
||||
MyTask *task = nullptr;
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
@@ -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 (...) {
|
||||
|
||||
Reference in New Issue
Block a user