Replace NULL by nullptr
This commit is contained in:
@@ -68,7 +68,7 @@ int main(int argc, char **argv)
|
||||
|
||||
if ( !QGLFormat::hasOpenGL() ) {
|
||||
QString msg = "System has no OpenGL support!";
|
||||
QMessageBox::critical( NULL, "OpenGL", msg + argv[1] );
|
||||
QMessageBox::critical( nullptr, "OpenGL", msg + argv[1] );
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ int main(int argc, char **argv)
|
||||
QString msg = "Cannot read mesh from file:\n '";
|
||||
msg += argv[optind];
|
||||
msg += "'";
|
||||
QMessageBox::critical( NULL, w.windowTitle(), msg );
|
||||
QMessageBox::critical( nullptr, w.windowTitle(), msg );
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -118,7 +118,7 @@ int main(int argc, char **argv)
|
||||
msg += "- Mesh file didn't provide texture coordinates\n";
|
||||
msg += "- Texture file does not exist\n";
|
||||
msg += "- Texture file is not accessible.\n";
|
||||
QMessageBox::warning( NULL, w.windowTitle(), msg );
|
||||
QMessageBox::warning( nullptr, w.windowTitle(), msg );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user