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/Effect/filewriter/filewriterplugin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/Effect/filewriter/filewriterplugin.cpp') diff --git a/src/plugins/Effect/filewriter/filewriterplugin.cpp b/src/plugins/Effect/filewriter/filewriterplugin.cpp index e60047ac1..f45a8b4e3 100644 --- a/src/plugins/Effect/filewriter/filewriterplugin.cpp +++ b/src/plugins/Effect/filewriter/filewriterplugin.cpp @@ -27,7 +27,7 @@ FileWriterPlugin::FileWriterPlugin() { - qsrand(time(NULL)); + qsrand(time(nullptr)); m_inited = false; } @@ -67,7 +67,7 @@ void FileWriterPlugin::applyEffect(Buffer *b) while(ok && vorbis_analysis_blockout(&m_vd, &m_vb) == 1) { // analysis, assume we want to use bitrate management - vorbis_analysis(&m_vb, NULL); + vorbis_analysis(&m_vb, nullptr); vorbis_bitrate_addblock(&m_vb); while(ok && vorbis_bitrate_flushpacket(&m_vd, &m_op)) @@ -167,7 +167,7 @@ void FileWriterPlugin::init(const TrackInfo &info) { Qmmp::YEAR, "date"}, { Qmmp::COMPOSER, "composer"}, { Qmmp::DISCNUMBER, "discnumber"}, - { Qmmp::UNKNOWN, 0} + { Qmmp::UNKNOWN, nullptr} }; int i = 0; -- cgit v1.2.3-13-gbd6f