X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/328fafa1db150b08d1793bafd1b17208857d0102..6327cdd57cd324afc284c4ef04a1a8eb6eab6e55:/include/wx/app.h?ds=inline diff --git a/include/wx/app.h b/include/wx/app.h index ccba2765a0..2efde737db 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -633,7 +633,7 @@ protected: // // the cast is safe as in GUI build we only use wxApp, not wxAppConsole, and in // console mode it does nothing at all -#define wxTheApp wx_static_cast(wxApp*, wxApp::GetInstance()) +#define wxTheApp static_cast(wxApp::GetInstance()) // ---------------------------------------------------------------------------- // global functions @@ -710,7 +710,7 @@ public: wxAppInitializer \ wxTheAppInitializer((wxAppInitializerFunction) wxCreateApp); \ DECLARE_APP(appname) \ - appname& wxGetApp() { return *wx_static_cast(appname*, wxApp::GetInstance()); } + appname& wxGetApp() { return *static_cast(wxApp::GetInstance()); } // Same as IMPLEMENT_APP() normally but doesn't include themes support in // wxUniversal builds