mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 08:27:13 +01:00
A few changes not using Maybe
This commit is contained in:
@@ -317,7 +317,7 @@ void QuitAudacity(bool bForce)
|
||||
AudacityProject::DeleteAllProjectsDeleteLock();
|
||||
|
||||
//remove our logger
|
||||
delete wxLog::SetActiveTarget(NULL);
|
||||
std::unique_ptr<wxLog>{ wxLog::SetActiveTarget(NULL) }; // DELETE
|
||||
|
||||
if (bForce)
|
||||
{
|
||||
@@ -1147,7 +1147,7 @@ bool AudacityApp::OnInit()
|
||||
// Ensure we have an event loop during initialization
|
||||
wxEventLoopGuarantor eventLoop;
|
||||
|
||||
delete wxLog::SetActiveTarget(new AudacityLogger);
|
||||
std::unique_ptr < wxLog > { wxLog::SetActiveTarget(new AudacityLogger) }; // DELETE
|
||||
|
||||
mLocale = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user