diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-01-03 07:41:04 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-01-03 07:41:04 +0000 |
| commit | b917024aa1ac4cb0a40164132db3c6d2913157eb (patch) | |
| tree | 4424bef9f2ac9a3dab21c822836a1b5c79ffee47 /src/qmmpui/playlistparser.cpp | |
| parent | bef5a901922c002815d047d276e61ec0bf8c0f46 (diff) | |
| download | qmmp-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/playlistparser.cpp')
| -rw-r--r-- | src/qmmpui/playlistparser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qmmpui/playlistparser.cpp b/src/qmmpui/playlistparser.cpp index 2d8f67f06..c30c02ab5 100644 --- a/src/qmmpui/playlistparser.cpp +++ b/src/qmmpui/playlistparser.cpp @@ -27,7 +27,7 @@ #include "playlistformat.h" #include "playlistparser.h" -QList<PlayListFormat*> *PlayListParser::m_formats = 0; +QList<PlayListFormat*> *PlayListParser::m_formats = nullptr; QList<PlayListFormat *> PlayListParser::formats() { @@ -65,7 +65,7 @@ PlayListFormat *PlayListParser::findByMime(const QString &mime) if(format->properties().contentTypes.contains(mime)) return format; } - return 0; + return nullptr; } PlayListFormat *PlayListParser::findByPath(const QString &filePath) @@ -80,7 +80,7 @@ PlayListFormat *PlayListParser::findByPath(const QString &filePath) return format; } } - return 0; + return nullptr; } PlayListFormat *PlayListParser::findByUrl(const QUrl &url) @@ -172,7 +172,7 @@ void PlayListParser::loadFormats() else qWarning("PlayListParser: %s", qPrintable(loader.errorString ())); - PlayListFormat *fmt = 0; + PlayListFormat *fmt = nullptr; if (plugin) fmt = qobject_cast<PlayListFormat *>(plugin); |
