X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc7a2a602b4bd9308be21bc07e40a680f483438e..1d39da4b229f228045c0aa6722665d42d5db61b8:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index bc304d3be8..32288fd1e3 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -245,7 +245,11 @@ bool wxEntryStart(int& argc, wxChar **argv) if ( fnCreate ) { // he did, try to create the custom wxApp object - app.Set((*fnCreate)()); + // + // NB: cast is needed because for the backwards-compatibility + // reasons wxTheApp is really a wxApp and not just + // wxAppConsole... + app.Set((wxApp*)(*fnCreate)()); } }