forked from mia/Aegisub
Remove AegisubApp::Get, as wxGetApp() does the same thing
Originally committed to SVN as r6051.
This commit is contained in:
parent
3e539835b7
commit
92949bc965
5 changed files with 4 additions and 6 deletions
|
@ -163,7 +163,7 @@ AudioProvider *AudioProviderFactory::GetProvider(wxString filename, int cache) {
|
|||
return provider;
|
||||
}
|
||||
|
||||
DialogProgress progress(AegisubApp::Get()->frame, _("Load audio"));
|
||||
DialogProgress progress(wxGetApp().frame, _("Load audio"));
|
||||
|
||||
// Convert to RAM
|
||||
if (cache == 1) return new RAMAudioProvider(provider, &progress);
|
||||
|
|
|
@ -94,7 +94,7 @@ FFMS_Index *FFmpegSourceProvider::DoIndexing(FFMS_Indexer *Indexer, const wxStri
|
|||
wxString MsgString;
|
||||
|
||||
// set up progress dialog callback
|
||||
DialogProgress Progress(AegisubApp::Get()->frame, _("Indexing"), _("Reading timecodes and frame/sample data"));
|
||||
DialogProgress Progress(wxGetApp().frame, _("Indexing"), _("Reading timecodes and frame/sample data"));
|
||||
|
||||
// index all audio tracks
|
||||
FFMS_Index *Index;
|
||||
|
|
|
@ -148,7 +148,7 @@ FrameMain::FrameMain (wxArrayString args)
|
|||
StartupLog("Initializing context frames");
|
||||
context->parent = this;
|
||||
context->previousFocus = 0;
|
||||
AegisubApp::Get()->frame = this;
|
||||
wxGetApp().frame = this;
|
||||
|
||||
#ifdef __WXMAC__
|
||||
// Bind(FrameMain::OnAbout, &FrameMain::cmd_call, this, cmd::id("app/about"));
|
||||
|
|
|
@ -128,8 +128,6 @@ public:
|
|||
/// DOCME
|
||||
Automation4::AutoloadScriptManager *global_scripts;
|
||||
|
||||
static AegisubApp* Get() { return (AegisubApp*)wxTheApp; }
|
||||
|
||||
#ifdef __WXMAC__
|
||||
// Apple events
|
||||
virtual void MacOpenFile(const wxString &filename);
|
||||
|
|
|
@ -130,7 +130,7 @@ static void do_wait(agi::ProgressSink *ps, FontConfigCacheThread const * const *
|
|||
static void wait_for_cache_thread(FontConfigCacheThread const * const * const cache_worker) {
|
||||
if (!*cache_worker) return;
|
||||
|
||||
DialogProgress progress(AegisubApp::Get()->frame, "Updating font index", "This may take several minutes");
|
||||
DialogProgress progress(wxGetApp().frame, "Updating font index", "This may take several minutes");
|
||||
progress.Run(bind(do_wait, std::tr1::placeholders::_1, cache_worker));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue