mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-05 11:13:16 +01:00
Switch to calling Yield via wxTheApp instead of wxGetApp(). Simpler to use pointer, AudacityApp doesn't override Yield, and this fixes compile error on VC++ Unicode Release.
This commit is contained in:
@@ -367,7 +367,7 @@ void BenchmarkDialog::OnRun( wxCommandEvent &event )
|
||||
|
||||
Printf(wxT("Preparing...\n"));
|
||||
|
||||
wxGetApp().Yield();
|
||||
wxTheApp->Yield();
|
||||
FlushPrint();
|
||||
|
||||
int i, b, v;
|
||||
@@ -400,7 +400,7 @@ void BenchmarkDialog::OnRun( wxCommandEvent &event )
|
||||
//t->Debug();
|
||||
|
||||
Printf(wxT("Performing %d edits...\n"), trials);
|
||||
wxGetApp().Yield();
|
||||
wxTheApp->Yield();
|
||||
FlushPrint();
|
||||
|
||||
timer.Start();
|
||||
@@ -454,7 +454,7 @@ void BenchmarkDialog::OnRun( wxCommandEvent &event )
|
||||
}
|
||||
Printf(wxT("Time to perform %d edits: %ld ms\n"), trials, elapsed);
|
||||
FlushPrint();
|
||||
wxGetApp().Yield();
|
||||
wxTheApp->Yield();
|
||||
|
||||
|
||||
#if 0
|
||||
@@ -466,7 +466,7 @@ void BenchmarkDialog::OnRun( wxCommandEvent &event )
|
||||
|
||||
Printf(wxT("Doing correctness check...\n"));
|
||||
FlushPrint();
|
||||
wxGetApp().Yield();
|
||||
wxTheApp->Yield();
|
||||
|
||||
bad = 0;
|
||||
timer.Start();
|
||||
@@ -491,7 +491,7 @@ void BenchmarkDialog::OnRun( wxCommandEvent &event )
|
||||
Printf(wxT("Time to check all data: %ld ms\n"), elapsed);
|
||||
Printf(wxT("Reading data again...\n"));
|
||||
|
||||
wxGetApp().Yield();
|
||||
wxTheApp->Yield();
|
||||
FlushPrint();
|
||||
|
||||
timer.Start();
|
||||
|
||||
Reference in New Issue
Block a user