TRUE not true; FALSE not false

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-09-14 02:09:52 +00:00
parent 21e3b8620a
commit b7282ad267
3 changed files with 11 additions and 11 deletions

View File

@@ -1118,7 +1118,7 @@ public:
int GetBatchCount() { return m_batchCount; } int GetBatchCount() { return m_batchCount; }
virtual void Refresh(bool eraseb = true, virtual void Refresh(bool eraseb = TRUE,
const wxRect* rect = (const wxRect *) NULL); const wxRect* rect = (const wxRect *) NULL);
// Use this, rather than wxWindow::Refresh(), to force an // Use this, rather than wxWindow::Refresh(), to force an

View File

@@ -31,23 +31,23 @@ IMPLEMENT_CLASS(wxClientBase, wxObject)
IMPLEMENT_CLASS(wxConnectionBase, wxObject) IMPLEMENT_CLASS(wxConnectionBase, wxObject)
wxConnectionBase::wxConnectionBase(wxChar *buffer, int size) wxConnectionBase::wxConnectionBase(wxChar *buffer, int size)
: m_connected(true), : m_connected(TRUE),
m_buffer(buffer), m_buffer(buffer),
m_buffersize(size), m_buffersize(size),
m_deletebufferwhendone(false) m_deletebufferwhendone(FALSE)
{ {
if ( buffer == (wxChar *)NULL ) if ( buffer == (wxChar *)NULL )
{ // behave like next constructor { // behave like next constructor
m_buffersize = 0; m_buffersize = 0;
m_deletebufferwhendone = true; m_deletebufferwhendone = TRUE;
} }
} }
wxConnectionBase::wxConnectionBase() wxConnectionBase::wxConnectionBase()
: m_connected(true), : m_connected(TRUE),
m_buffer(NULL), m_buffer(NULL),
m_buffersize(0), m_buffersize(0),
m_deletebufferwhendone(true) m_deletebufferwhendone(TRUE)
{ {
} }
@@ -55,7 +55,7 @@ wxConnectionBase::wxConnectionBase(wxConnectionBase& copy)
: m_connected(copy.m_connected), : m_connected(copy.m_connected),
m_buffer(copy.m_buffer), m_buffer(copy.m_buffer),
m_buffersize(copy.m_buffersize), m_buffersize(copy.m_buffersize),
m_deletebufferwhendone(false) m_deletebufferwhendone(FALSE)
{ {
// copy constructor would require ref-counted pointer to buffer // copy constructor would require ref-counted pointer to buffer

View File

@@ -383,7 +383,7 @@ bool wxTCPConnection::Disconnect ()
m_codeco->Write8(IPC_DISCONNECT); m_codeco->Write8(IPC_DISCONNECT);
m_sock->Notify(FALSE); m_sock->Notify(FALSE);
m_sock->Close(); m_sock->Close();
SetConnected(false); SetConnected(FALSE);
return TRUE; return TRUE;
} }
@@ -660,7 +660,7 @@ void wxTCPEventHandler::Client_OnRequest(wxSocketEvent &event)
{ {
sock->Notify(FALSE); sock->Notify(FALSE);
sock->Close(); sock->Close();
connection->SetConnected(false); connection->SetConnected(FALSE);
connection->OnDisconnect(); connection->OnDisconnect();
break; break;
} }