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/plugins/Input/archive/decoderarchivefactory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/Input/archive/decoderarchivefactory.cpp') diff --git a/src/plugins/Input/archive/decoderarchivefactory.cpp b/src/plugins/Input/archive/decoderarchivefactory.cpp index 50a994229..2b0f6ce25 100644 --- a/src/plugins/Input/archive/decoderarchivefactory.cpp +++ b/src/plugins/Input/archive/decoderarchivefactory.cpp @@ -56,7 +56,7 @@ Decoder *DecoderArchiveFactory::create(const QString &url, QIODevice *) QList DecoderArchiveFactory::createPlayList(const QString &path, TrackInfo::Parts parts, QStringList *) { QList list; - struct archive_entry *entry = 0; + struct archive_entry *entry = nullptr; struct archive *a = archive_read_new(); archive_read_support_filter_all(a); @@ -109,7 +109,7 @@ QList DecoderArchiveFactory::createPlayList(const QString &path, Tr .arg(archivePath) .arg(filePath)); - ArchiveInputDevice dev(a, entry, 0); + ArchiveInputDevice dev(a, entry, nullptr); ArchiveTagReader reader(&dev, list.last()->path()); if(parts & TrackInfo::MetaData) @@ -140,7 +140,7 @@ MetaDataModel* DecoderArchiveFactory::createMetaDataModel(const QString &path, b { Q_UNUSED(path); Q_UNUSED(readOnly); - return 0; + return nullptr; } void DecoderArchiveFactory::showSettings(QWidget *) -- cgit v1.2.3-13-gbd6f