diff --git a/include/wx/sckipc.h b/include/wx/sckipc.h index 181d160ddd..69cf8c6a45 100644 --- a/include/wx/sckipc.h +++ b/include/wx/sckipc.h @@ -122,7 +122,7 @@ public: virtual wxConnectionBase *OnAcceptConnection(const wxString& topic) override; protected: - wxSocketServer *m_server; + wxSocketServer *m_server = nullptr; #ifdef __UNIX_LIKE__ // the name of the file associated to the Unix domain socket, may be empty diff --git a/src/common/sckipc.cpp b/src/common/sckipc.cpp index 8cbea63696..93db7027cd 100644 --- a/src/common/sckipc.cpp +++ b/src/common/sckipc.cpp @@ -1139,11 +1139,7 @@ wxConnectionBase *wxTCPClient::OnMakeConnection() // wxTCPServer // -------------------------------------------------------------------------- -wxTCPServer::wxTCPServer() - : wxServerBase() -{ - m_server = nullptr; -} +wxTCPServer::wxTCPServer() = default; bool wxTCPServer::Create(const wxString& serverName) {