1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-15 07:01:18 +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

@@ -266,7 +266,7 @@ Plugin *VampEffectsModule::FindPlugin(const wxString & path,
Plugin *vp = PluginLoader::getInstance()->loadPlugin(key, 48000); // rate doesn't matter here Plugin *vp = PluginLoader::getInstance()->loadPlugin(key, 48000); // rate doesn't matter here
if (!vp) if (!vp)
{ {
return false; return nullptr;
} }
// We limit the listed plugin outputs to those whose results can // We limit the listed plugin outputs to those whose results can

View File

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