mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-26 09:56:32 +08:00
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:
+1
-1
@@ -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
|
||||
|
||||
@@ -1139,11 +1139,7 @@ wxConnectionBase *wxTCPClient::OnMakeConnection()
|
||||
// wxTCPServer
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
wxTCPServer::wxTCPServer()
|
||||
: wxServerBase()
|
||||
{
|
||||
m_server = nullptr;
|
||||
}
|
||||
wxTCPServer::wxTCPServer() = default;
|
||||
|
||||
bool wxTCPServer::Create(const wxString& serverName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user