X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65669e3152f9d6d3bb77c31d4211a356fe089d56..34326da778583ca8eab95f2e41738da2852a5a16:/samples/ipc/baseserver.cpp?ds=sidebyside diff --git a/samples/ipc/baseserver.cpp b/samples/ipc/baseserver.cpp index 80581e5760..fc5e88c65b 100644 --- a/samples/ipc/baseserver.cpp +++ b/samples/ipc/baseserver.cpp @@ -7,7 +7,7 @@ // Created: 2007-11-08 // RCS-ID: $Id$ // Copyright: (c) 2007 Anders Larsen -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -104,7 +104,7 @@ private: // should we notify the client about changes to m_item? bool m_advise; - DECLARE_NO_COPY_CLASS(BenchConnection) + wxDECLARE_NO_COPY_CLASS(BenchConnection); }; // a simple server accepting connections to IPC_TOPIC and IPC_BENCHMARK_TOPIC @@ -211,8 +211,7 @@ void MyServer::Disconnect() if ( m_connection ) { m_connection->Disconnect(); - delete m_connection; - m_connection = NULL; + wxDELETE(m_connection); wxLogMessage("Disconnected client"); } } @@ -376,7 +375,9 @@ bool BenchConnection::OnPoke(const wxString& topic, if ( m_advise ) { if ( !Advise(item, m_item) ) + { wxLogMessage("Failed to advise client about the change."); + } } return true;