Mercurial > hg > svcore
diff data/fileio/AudioFileReaderFactory.cpp @ 1582:70e172e6cc59 fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:41 +0000 |
parents | 1c9bbbb6116a |
children | ce185d4dd408 |
line wrap: on
line diff
--- a/data/fileio/AudioFileReaderFactory.cpp Mon Nov 26 13:51:36 2018 +0000 +++ b/data/fileio/AudioFileReaderFactory.cpp Mon Nov 26 14:33:41 2018 +0000 @@ -68,15 +68,15 @@ if (!source.isOK()) { SVCERR << "AudioFileReaderFactory::createReader(\"" << source.getLocation() << "\": Failed to retrieve source (transmission error?): " << source.getErrorString() << endl; - return 0; + return nullptr; } if (!source.isAvailable()) { SVCERR << "AudioFileReaderFactory::createReader(\"" << source.getLocation() << "\": Source not found" << endl; - return 0; + return nullptr; } - AudioFileReader *reader = 0; + AudioFileReader *reader = nullptr; sv_samplerate_t targetRate = params.targetRate; bool normalised = (params.normalisation == Normalisation::Peak);