// Created: 2007-11-08
// RCS-ID: $Id$
// Copyright: (c) 2007 Anders Larsen
-// License: wxWindows licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
// 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
if ( m_connection )
{
m_connection->Disconnect();
- delete m_connection;
- m_connection = NULL;
+ wxDELETE(m_connection);
wxLogMessage("Disconnected client");
}
}
if ( m_advise )
{
if ( !Advise(item, m_item) )
+ {
wxLogMessage("Failed to advise client about the change.");
+ }
}
return true;