mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 16:48:44 +02:00
Fix warnings for returning false instead of null
This commit is contained in:
parent
3cc4754ac7
commit
60f2322055
@ -266,7 +266,7 @@ Plugin *VampEffectsModule::FindPlugin(const wxString & path,
|
||||
Plugin *vp = PluginLoader::getInstance()->loadPlugin(key, 48000); // rate doesn't matter here
|
||||
if (!vp)
|
||||
{
|
||||
return false;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// We limit the listed plugin outputs to those whose results can
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user