1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 22:23:59 +01:00

Throw by value, catch by reference: don't use pointers...

... that's what the better books on C++ recommend.
This commit is contained in:
Paul Licameli
2016-02-14 04:35:05 -05:00
parent 7c4c45a0d5
commit 6052b5f9be
7 changed files with 17 additions and 32 deletions

View File

@@ -1500,14 +1500,12 @@ void EffectEqualization::SaveCurves(wxString fileName)
// Close the file
eqFile.Close();
}
catch (XMLFileWriterException* pException)
catch (const XMLFileWriterException &exception)
{
wxMessageBox(wxString::Format(
_("Couldn't write to file \"%s\": %s"),
fn.GetFullPath().c_str(), pException->GetMessage().c_str()),
fn.GetFullPath().c_str(), exception.GetMessage().c_str()),
_("Error Saving Equalization Curves"), wxICON_ERROR, mUIParent);
delete pException;
}
}