X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/328fafa1db150b08d1793bafd1b17208857d0102..87c0312a66f57b1d167e1f9454a80fe4b7b28e0b:/include/wx/app.h

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*>(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<appname*>(wxApp::GetInstance()); }
 
 // Same as IMPLEMENT_APP() normally but doesn't include themes support in
 // wxUniversal builds