summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-07-31 17:21:41 +0200
committerhjk <hjk@qt.io>2019-08-01 13:20:26 +0000
commit2e14df7561ee10c7a408bd3ebb4944016ecdd1f4 (patch)
tree4a220241720e8a307fb96e98941656cf7b9f940d /src/app
parent630385751a806b64d41295ee50957e2a9138a193 (diff)
downloadqt-creator-2e14df7561ee10c7a408bd3ebb4944016ecdd1f4.tar.gz
Some clang-tidy -use-modernize-nullptr
Change-Id: I1bed5e85a5b7948d08502a72a10f80baa075c204 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 7e8552841d..359bb673b5 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -129,7 +129,7 @@ static void displayHelpText(const QString &t)
static void displayError(const QString &t)
{
if (Utils::HostOsInfo::isWindowsHost() && qApp)
- QMessageBox::critical(0, QLatin1String(Core::Constants::IDE_DISPLAY_NAME), t);
+ QMessageBox::critical(nullptr, QLatin1String(Core::Constants::IDE_DISPLAY_NAME), t);
else
qCritical("%s", qPrintable(t));
}
@@ -154,7 +154,7 @@ static void printHelp(const QString &a0)
displayHelpText(help);
}
-QString applicationDirPath(char *arg = 0)
+QString applicationDirPath(char *arg = nullptr)
{
static QString dir;
@@ -179,7 +179,7 @@ static inline QString msgCoreLoadFailure(const QString &why)
static inline int askMsgSendFailed()
{
- return QMessageBox::question(0, QApplication::translate("Application","Could not send message"),
+ return QMessageBox::question(nullptr, QApplication::translate("Application","Could not send message"),
QCoreApplication::translate("Application", "Unable to send command line arguments "
"to the already running instance. It does not appear to "
"be responding. Do you want to start a new instance of "
@@ -549,7 +549,7 @@ int main(int argc, char **argv)
}
const PluginSpecSet plugins = PluginManager::plugins();
- PluginSpec *coreplugin = 0;
+ PluginSpec *coreplugin = nullptr;
foreach (PluginSpec *spec, plugins) {
if (spec->name() == QLatin1String(corePluginNameC)) {
coreplugin = spec;