From e636713658c262d2ba6990fd88da20109a9f68ce Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 5 Jul 2026 16:33:57 +0200 Subject: [PATCH] Let compiler generate wxTCPServer ctor There is no need to define it manually, leaving it as default is shorter and more clear. --- include/wx/sckipc.h | 2 +- src/common/sckipc.cpp | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) 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) {