more changes to make wx compile without implicit wxString->char* conversion (for STL build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -51,7 +51,10 @@ public:
|
||||
|
||||
// Calls that CLIENT can make
|
||||
virtual bool Execute(const wxChar *data, int size = -1, wxIPCFormat format = wxIPC_TEXT);
|
||||
virtual bool Execute(const wxString& str) { return Execute(str, -1, wxIPC_TEXT); }
|
||||
// FIXME-UTF8: change Execute() to DoExecute() to avoid having to do this;
|
||||
// don't use c_str() below after removing ANSI build
|
||||
virtual bool Execute(const wxString& str)
|
||||
{ return Execute(str.c_str(), -1, wxIPC_TEXT); }
|
||||
virtual wxChar *Request(const wxString& item, int *size = NULL, wxIPCFormat format = wxIPC_TEXT);
|
||||
virtual bool Poke(const wxString& item, wxChar *data, int size = -1, wxIPCFormat format = wxIPC_TEXT);
|
||||
virtual bool StartAdvise(const wxString& item);
|
||||
|
@@ -66,7 +66,7 @@ public:
|
||||
private:
|
||||
// helper function: reads the command corresponding to the specified verb
|
||||
// from the registry (returns an empty string if not found)
|
||||
wxString GetCommand(const wxChar *verb) const;
|
||||
wxString GetCommand(const wxString& verb) const;
|
||||
|
||||
// get the registry path for the given verb
|
||||
wxString GetVerbPath(const wxString& verb) const;
|
||||
|
@@ -692,7 +692,7 @@ public:
|
||||
{
|
||||
if ( IsRegistered() )
|
||||
{
|
||||
if ( !::UnregisterClass(m_clsname, wxhInstance) )
|
||||
if ( !::UnregisterClass(m_clsname.wx_str(), wxhInstance) )
|
||||
{
|
||||
wxLogLastError(_T("UnregisterClass"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user