mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-16 09:31:14 +01:00
Stack-allocate where possible! ...
... Removed many unnecessary naked news and deletes.
This commit is contained in:
@@ -188,9 +188,11 @@ void BatchProcessDialog::OnApplyToProject(wxCommandEvent & WXUNUSED(event))
|
||||
|
||||
// The disabler must get deleted before the EndModal() call. Otherwise,
|
||||
// the menus on OSX will remain disabled.
|
||||
wxWindowDisabler *wd = new wxWindowDisabler(pD);
|
||||
bool success = mBatchCommands.ApplyChain();
|
||||
delete wd;
|
||||
bool success;
|
||||
{
|
||||
wxWindowDisabler wd(pD);
|
||||
success = mBatchCommands.ApplyChain();
|
||||
}
|
||||
|
||||
if (!success) {
|
||||
Show();
|
||||
|
||||
Reference in New Issue
Block a user