]> git.saurik.com Git - wxWidgets.git/commitdiff
add an assert indicating that old code overriding OnExecute() must be updated with 2.9
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 2 May 2008 22:05:43 +0000 (22:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 2 May 2008 22:05:43 +0000 (22:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
include/wx/ipcbase.h

index e7ce5694bf8835f8e691a3f27a7d1d4588fa465b..d2fb60c611c5508f62877c09e1d0ab8874ca2257 100644 (file)
@@ -37,6 +37,8 @@ changes:
   to work with "wxChar *" before use "void *" now (some int parameters were
   also changed to size_t). While wxIPC_TEXT can still be used to transfer 7
   bit text, the new wxIPC_UTF8TEXT format is used for transferring wxStrings.
+  Also notice that connection classes should change the parameter types of
+  their overridden OnExecute() or override a more convenient OnExec() instead.
 
 
 wxODBC and contrib libraries removal
index 56de3c8d35fc720f595910d818e84f9218bb4007..45c0f4455364b19ebafe988f783eca1103812fb7 100644 (file)
@@ -129,7 +129,14 @@ public:
   // Callbacks to SERVER - override at will
   virtual bool OnExec(const wxString& WXUNUSED(topic),
                       const wxString& WXUNUSED(data))
-      { return false; }
+  {
+      wxFAIL_MSG( "This method shouldn't be called, if it is, it probably "
+                  "means that you didn't update your old code overriding "
+                  "OnExecute() to use the new parameter types (\"const void *\" "
+                  "instead of \"wxChar *\" and \"size_t\" instead of \"int\"), "
+                  "you must do it or your code wouldn't be executed at all!" );
+      return false;
+  }
 
   // deprecated function kept for backwards compatibility: usually you will
   // want to override OnExec() above instead which receives its data in a more