summaryrefslogtreecommitdiffstats
path: root/examples/widgets/desktop/systray/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/desktop/systray/main.cpp')
-rw-r--r--examples/widgets/desktop/systray/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/desktop/systray/main.cpp b/examples/widgets/desktop/systray/main.cpp
index d981415b44..2d91e4ac36 100644
--- a/examples/widgets/desktop/systray/main.cpp
+++ b/examples/widgets/desktop/systray/main.cpp
@@ -64,7 +64,7 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
- QMessageBox::critical(0, QObject::tr("Systray"),
+ QMessageBox::critical(nullptr, QObject::tr("Systray"),
QObject::tr("I couldn't detect any system tray "
"on this system."));
return 1;