]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
Fixed Unicode breakage
[wxWidgets.git] / src / common / appbase.cpp
index f19e5e4ce206e21bd243d8b98fd4f2130df252fa..706c1c97c892fd40ef326efc181d9a4e02952a81 100644 (file)
@@ -277,6 +277,19 @@ int wxAppConsole::FilterEvent(wxEvent& WXUNUSED(event))
     return -1;
 }
 
+#if wxUSE_EXCEPTIONS
+
+void
+wxAppConsole::HandleEvent(wxEvtHandler *handler,
+                          wxEventFunction func,
+                          wxEvent& event) const
+{
+    // by default, simply call the handler
+    (handler->*func)(event);
+}
+
+#endif // wxUSE_EXCEPTIONS
+
 // ----------------------------------------------------------------------------
 // cmd line parsing
 // ----------------------------------------------------------------------------
@@ -371,10 +384,10 @@ bool wxAppConsole::CheckBuildOptions(const char *optionsSignature,
         wxString prog = wxString::FromAscii(optionsSignature);
         wxString progName = wxString::FromAscii(componentName);
         wxString msg;
-        
+
         msg.Printf(_T("Mismatch between the program and library build versions detected.\nThe library used %s,\nand %s used %s."),
                    lib.c_str(), progName.c_str(), prog.c_str());
-        
+
         wxLogFatalError(msg);
 
         // normally wxLogFatalError doesn't return
@@ -456,7 +469,7 @@ void wxConsoleAppTraitsBase::RemoveFromPendingDelete(wxObject * WXUNUSED(object)
 {
     // nothing to do
 }
-    
+
 #if wxUSE_SOCKETS
 GSocketGUIFunctionsTable* wxConsoleAppTraitsBase::GetSocketGUIFunctionsTable()
 {
@@ -533,7 +546,7 @@ void wxAssert(int cond,
               const wxChar *szFile,
               int nLine,
               const wxChar *szCond,
-              const wxChar *szMsg) 
+              const wxChar *szMsg)
 {
     if ( !cond )
         wxOnAssert(szFile, nLine, szCond, szMsg);