aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/commandlinemanager.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-01-03 07:41:04 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-01-03 07:41:04 +0000
commitb917024aa1ac4cb0a40164132db3c6d2913157eb (patch)
tree4424bef9f2ac9a3dab21c822836a1b5c79ffee47 /src/qmmpui/commandlinemanager.cpp
parentbef5a901922c002815d047d276e61ec0bf8c0f46 (diff)
downloadqmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.tar.gz
qmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.tar.bz2
qmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.zip
fixed build with -Werror=zero-as-null-pointer-constant
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8572 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/commandlinemanager.cpp')
-rw-r--r--src/qmmpui/commandlinemanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qmmpui/commandlinemanager.cpp b/src/qmmpui/commandlinemanager.cpp
index 295e78cdb..c7e04e88c 100644
--- a/src/qmmpui/commandlinemanager.cpp
+++ b/src/qmmpui/commandlinemanager.cpp
@@ -32,8 +32,8 @@
#include "mediaplayer.h"
#include "commandlinemanager.h"
-QList<CommandLineHandler *> *CommandLineManager::m_options = 0;
-QHash<CommandLineHandler*, QString> *CommandLineManager::m_files = 0;
+QList<CommandLineHandler *> *CommandLineManager::m_options = nullptr;
+QHash<CommandLineHandler*, QString> *CommandLineManager::m_files = nullptr;
void CommandLineManager::checkOptions()
{
@@ -51,7 +51,7 @@ void CommandLineManager::checkOptions()
else
qWarning("CommandLineManager: %s", qPrintable(loader.errorString ()));
- CommandLineHandler *option = 0;
+ CommandLineHandler *option = nullptr;
if (plugin)
option = qobject_cast<CommandLineHandler *>(plugin);
@@ -99,7 +99,7 @@ bool CommandLineManager::hasOption(const QString &opt_str, CommandLineHandler::O
{
checkOptions();
if(flags)
- *flags = 0;
+ *flags = nullptr;
foreach(CommandLineHandler *opt, *m_options)
{
int id = opt->identify(opt_str);