From a49047c93e91edbc35b8ba74437ad2e94ad8f5e4 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 3 Jan 2019 08:41:40 +0000 Subject: fixed build with -Werror=zero-as-null-pointer-constant git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8573 90c681e8-e032-0410-971d-27865f9a5e38 --- src/app/qmmpstarter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/app') diff --git a/src/app/qmmpstarter.cpp b/src/app/qmmpstarter.cpp index 291a6db7a..cf537b8de 100644 --- a/src/app/qmmpstarter.cpp +++ b/src/app/qmmpstarter.cpp @@ -66,7 +66,7 @@ QMMPStarter::QMMPStarter() : QObject() connect(qApp, SIGNAL(commitDataRequest(QSessionManager&)), SLOT(commitData(QSessionManager&)), Qt::DirectConnection); #endif #ifdef Q_OS_WIN - m_named_mutex = 0; + m_named_mutex = nullptr; #endif m_option_manager = new BuiltinCommandLineOption(this); QStringList tmp = qApp->arguments().mid(1); @@ -128,7 +128,7 @@ QMMPStarter::QMMPStarter() : QObject() cout << qPrintable(CommandLineManager::executeCommand(key, commands.value(key)).trimmed()) << endl; #ifdef Q_OS_WIN string text = tmp_stream.str(); - QMessageBox::information(0, tr("Command Line Help"), QString::fromLocal8Bit(text.c_str())); + QMessageBox::information(nullptr, tr("Command Line Help"), QString::fromLocal8Bit(text.c_str())); cout.rdbuf(old_stream); //restore old stream buffer #endif return; @@ -413,7 +413,7 @@ void QMMPStarter::printUsage() cout << qPrintable(CommandLineManager::formatHelpString(line)) << endl; #ifdef Q_OS_WIN string text = tmp_stream.str(); - QMessageBox::information(0, tr("Command Line Help"), QString::fromLocal8Bit(text.c_str())); + QMessageBox::information(nullptr, tr("Command Line Help"), QString::fromLocal8Bit(text.c_str())); cout.rdbuf(old_stream); //restore old stream buffer #endif } @@ -431,7 +431,7 @@ void QMMPStarter::printVersion() cout << qPrintable(tr("Using Qt version: %1").arg(qVersion())) << endl; #ifdef Q_OS_WIN string text = tmp_stream.str(); - QMessageBox::information(0, tr("Qmmp Version"), QString::fromLocal8Bit(text.c_str())); + QMessageBox::information(nullptr, tr("Qmmp Version"), QString::fromLocal8Bit(text.c_str())); cout.rdbuf(old_stream); //restore old stream buffer #endif } @@ -448,7 +448,7 @@ void QMMPStarter::printUserInterfaces() cout << qPrintable(name) << endl; #ifdef Q_OS_WIN string text = tmp_stream.str(); - QMessageBox::information(0, tr("User Interfaces"), QString::fromLocal8Bit(text.c_str())); + QMessageBox::information(nullptr, tr("User Interfaces"), QString::fromLocal8Bit(text.c_str())); cout.rdbuf(old_stream); //restore old stream buffer #endif } -- cgit v1.2.3-13-gbd6f