replaced the old wxApp with wxAppConsole::ms_appInstance of type wxAppConsole; wxTheApp is now a macro for backwards compatibility (this fixes problems with contradictorary wxTheApp definitions in separate build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -89,7 +89,7 @@
|
||||
// global vars
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
wxApp *wxTheApp = NULL;
|
||||
wxAppConsole *wxAppConsole::ms_appInstance = NULL;
|
||||
|
||||
wxAppInitializerFunction wxAppConsole::ms_appInitFn = NULL;
|
||||
|
||||
@@ -105,7 +105,7 @@ wxAppConsole::wxAppConsole()
|
||||
{
|
||||
m_traits = NULL;
|
||||
|
||||
wxTheApp = (wxApp *)this;
|
||||
ms_appInstance = this;
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
SetTraceMasks();
|
||||
|
Reference in New Issue
Block a user