Gui: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 18:41:21 +01:00
parent be7e18757c
commit 1178df06b4
239 changed files with 1197 additions and 1197 deletions

View File

@@ -42,7 +42,7 @@ using namespace Gui;
/* TRANSLATOR Gui::Assistant */
Assistant::Assistant()
: proc(0)
: proc(nullptr)
{
}
@@ -95,7 +95,7 @@ bool Assistant::startAssistant()
QFileInfo fi(qhc);
if (!fi.isReadable()) {
QMessageBox::critical(0, tr("%1 Help").arg(exe),
QMessageBox::critical(nullptr, tr("%1 Help").arg(exe),
tr("%1 help files not found (%2). You might need to install the %1 documentation package.").arg(exe, qhc));
return false;
}
@@ -127,7 +127,7 @@ bool Assistant::startAssistant()
proc->start(app, args);
if (!proc->waitForFinished(50000)) {
QMessageBox::critical(0, tr("%1 Help").arg(exe),
QMessageBox::critical(nullptr, tr("%1 Help").arg(exe),
tr("Unable to launch Qt Assistant (%1)").arg(app));
return false;
}
@@ -141,7 +141,7 @@ bool Assistant::startAssistant()
proc->start(app, args);
if (!proc->waitForFinished(50000)) {
QMessageBox::critical(0, tr("%1 Help").arg(exe),
QMessageBox::critical(nullptr, tr("%1 Help").arg(exe),
tr("Unable to launch Qt Assistant (%1)").arg(app));
return false;
}
@@ -159,7 +159,7 @@ bool Assistant::startAssistant()
proc->start(app, args);
if (!proc->waitForStarted()) {
QMessageBox::critical(0, tr("%1 Help").arg(exe),
QMessageBox::critical(nullptr, tr("%1 Help").arg(exe),
tr("Unable to launch Qt Assistant (%1)").arg(app));
return false;
}