]> git.saurik.com Git - wxWidgets.git/commitdiff
blind fix to make IPC work again by overriding OnExec() correctly in IPC connection...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Jul 2009 12:43:06 +0000 (12:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 3 Jul 2009 12:43:06 +0000 (12:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/helpview/src/helpview.cpp
utils/helpview/src/helpview.h

index 6a74791cff6da544fb4a274982bb15fe98ee2694..64db2d8d5282f9180f68a8d975bda7917ad50509 100644 (file)
@@ -407,14 +407,12 @@ hvConnection::~hvConnection()
     wxGetApp().GetConnections().DeleteObject(this);
 }
 
-bool hvConnection::OnExecute(const wxString& WXUNUSED(topic),
-                             wxChar *data,
-                             int WXUNUSED(size),
-                             wxIPCFormat WXUNUSED(format))
+bool hvConnection::OnExec(const wxString& WXUNUSED(topic),
+                          const wxString& data)
 {
     //    wxLogStatus("Execute command: %s", data);
 
-    if ( !wxStrncmp( data, wxT("--intstring"), 11 ) )
+    if ( data == "--intstring" )
     {
         long i;
         wxString argStr = data;
index bd1de5fd6cb34c4ed065c7937fcf69111af00e48..2c789b0fdbb45a07ed5be6d46b158a6a5b24eb4f 100644 (file)
@@ -67,7 +67,7 @@ public:
     hvConnection();
     virtual ~hvConnection();
 
-    bool OnExecute(const wxString& topic, wxChar*data, int size, wxIPCFormat format);
+    bool OnExec(const wxString& topic, const wxString& data);
     wxChar *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format);
     bool OnPoke(const wxString& topic, const wxString& item, wxChar *data, int size, wxIPCFormat format);
     bool OnStartAdvise(const wxString& topic, const wxString& item);