1
0
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:
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

@@ -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)