1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-13 22:21:11 +02:00

Fix warnings for returning false instead of null

This commit is contained in:
Paul Licameli
2016-02-26 14:45:09 -05:00
parent 3cc4754ac7
commit 60f2322055
2 changed files with 4 additions and 4 deletions

View File

@@ -299,7 +299,7 @@ ImportFileHandle *FLACImportPlugin::Open(const wxString &filename)
int cnt;
wxFile binaryFile;
if (!binaryFile.Open(filename)) {
return false; // File not found
return nullptr; // File not found
}
#ifdef USE_LIBID3TAG
@@ -316,7 +316,7 @@ ImportFileHandle *FLACImportPlugin::Open(const wxString &filename)
if (cnt == wxInvalidOffset || strncmp(buf, FLAC_HEADER, 4) != 0) {
// File is not a FLAC file
return false;
return nullptr;
}
// Open the file for import
@@ -325,7 +325,7 @@ ImportFileHandle *FLACImportPlugin::Open(const wxString &filename)
bool success = handle->Init();
if (!success) {
delete handle;
return NULL;
return nullptr;
}
return handle;