From b917024aa1ac4cb0a40164132db3c6d2913157eb Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 3 Jan 2019 07:41:04 +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@8572 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/commandlinemanager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/qmmpui/commandlinemanager.cpp') 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 *CommandLineManager::m_options = 0; -QHash *CommandLineManager::m_files = 0; +QList *CommandLineManager::m_options = nullptr; +QHash *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(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); -- cgit v1.2.3-13-gbd6f