mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 07:13:49 +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:
@@ -761,9 +761,8 @@ bool AutoSaveFile::Decode(const wxString & fileName)
|
||||
out.Open(tempName, wxT("wb"));
|
||||
opened = out.IsOpened();
|
||||
}
|
||||
catch (XMLFileWriterException* pException)
|
||||
catch (const XMLFileWriterException&)
|
||||
{
|
||||
delete pException;
|
||||
}
|
||||
|
||||
if (!opened)
|
||||
|
||||
Reference in New Issue
Block a user