Eliminate -Wcast-qual warnings with GCC and Clang
Use const_cast, mutable, and various other changes to avoid -Wcast-qual
This commit is contained in:
@@ -87,10 +87,11 @@ public:
|
||||
// Find/delete wxDDEConnection corresponding to the HCONV
|
||||
wxDDEConnection *FindConnection(WXHCONV conv);
|
||||
bool DeleteConnection(WXHCONV conv);
|
||||
wxString& GetServiceName() const { return (wxString&) m_serviceName; }
|
||||
wxString& GetServiceName() { return m_serviceName; }
|
||||
const wxString& GetServiceName() const { return m_serviceName; }
|
||||
|
||||
wxDDEConnectionList& GetConnections() const
|
||||
{ return (wxDDEConnectionList&) m_connections; }
|
||||
wxDDEConnectionList& GetConnections() { return m_connections; }
|
||||
const wxDDEConnectionList& GetConnections() const { return m_connections; }
|
||||
|
||||
protected:
|
||||
int m_lastError;
|
||||
@@ -120,8 +121,8 @@ public:
|
||||
wxDDEConnection *FindConnection(WXHCONV conv);
|
||||
bool DeleteConnection(WXHCONV conv);
|
||||
|
||||
wxDDEConnectionList& GetConnections() const
|
||||
{ return (wxDDEConnectionList&) m_connections; }
|
||||
wxDDEConnectionList& GetConnections() { return m_connections; }
|
||||
const wxDDEConnectionList& GetConnections() const { return m_connections; }
|
||||
|
||||
protected:
|
||||
int m_lastError;
|
||||
|
Reference in New Issue
Block a user