Let compiler generate wxTCPServer ctor

There is no need to define it manually, leaving it as default is shorter
and more clear.
This commit is contained in:
Vadim Zeitlin
2026-08-06 21:59:34 +02:00
parent f17abe5883
commit e636713658
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -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
+1 -5
View File
@@ -1139,11 +1139,7 @@ wxConnectionBase *wxTCPClient::OnMakeConnection()
// wxTCPServer
// --------------------------------------------------------------------------
wxTCPServer::wxTCPServer()
: wxServerBase()
{
m_server = nullptr;
}
wxTCPServer::wxTCPServer() = default;
bool wxTCPServer::Create(const wxString& serverName)
{