diff --git a/utils/helpview/src/helpview.cpp b/utils/helpview/src/helpview.cpp index 6a74791cff..64db2d8d52 100644 --- a/utils/helpview/src/helpview.cpp +++ b/utils/helpview/src/helpview.cpp @@ -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; diff --git a/utils/helpview/src/helpview.h b/utils/helpview/src/helpview.h index bd1de5fd6c..2c789b0fdb 100644 --- a/utils/helpview/src/helpview.h +++ b/utils/helpview/src/helpview.h @@ -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);