Source cleaning.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-08-18 09:22:14 +00:00
parent b081046a66
commit 77c46f00b5
4 changed files with 22 additions and 22 deletions

View File

@@ -47,7 +47,7 @@ public:
void SetHACCEL(WXHACCEL hAccel); void SetHACCEL(WXHACCEL hAccel);
WXHACCEL GetHACCEL() const; WXHACCEL GetHACCEL() const;
// translate the accelerator, return TRUE if done // translate the accelerator, return true if done
bool Translate(wxWindow *window, WXMSG *msg) const; bool Translate(wxWindow *window, WXMSG *msg) const;
private: private:

View File

@@ -39,7 +39,7 @@ public:
virtual bool Initialize(int& argc, wxChar **argv); virtual bool Initialize(int& argc, wxChar **argv);
virtual void CleanUp(); virtual void CleanUp();
virtual bool Yield(bool onlyIfNeeded = FALSE); virtual bool Yield(bool onlyIfNeeded = false);
virtual void WakeUpIdle(); virtual void WakeUpIdle();
virtual void SetPrintMode(int mode) { m_printMode = mode; } virtual void SetPrintMode(int mode) { m_printMode = mode; }
@@ -63,7 +63,7 @@ public:
static bool UnregisterWindowClasses(); static bool UnregisterWindowClasses();
#if wxUSE_RICHEDIT #if wxUSE_RICHEDIT
// initialize the richedit DLL of (at least) given version, return TRUE if // initialize the richedit DLL of (at least) given version, return true if
// ok (Win95 has version 1, Win98/NT4 has 1 and 2, W2K has 3) // ok (Win95 has version 1, Win98/NT4 has 1 and 2, W2K has 3)
static bool InitRichEdit(int version = 2); static bool InitRichEdit(int version = 2);
#endif // wxUSE_RICHEDIT #endif // wxUSE_RICHEDIT

View File

@@ -51,7 +51,7 @@ protected:
wxAcceleratorRefData::wxAcceleratorRefData() wxAcceleratorRefData::wxAcceleratorRefData()
{ {
m_ok = FALSE; m_ok = false;
m_hAccel = 0; m_hAccel = 0;
} }

View File

@@ -290,7 +290,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
MB_ICONERROR | MB_OK MB_ICONERROR | MB_OK
); );
return FALSE; return false;
} }
#endif // wxUSE_UNICODE && !wxUSE_UNICODE_MSLU #endif // wxUSE_UNICODE && !wxUSE_UNICODE_MSLU
@@ -343,7 +343,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
wxWinHandleHash = new wxWinHashTable(wxKEY_INTEGER, 100); wxWinHandleHash = new wxWinHashTable(wxKEY_INTEGER, 100);
#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__) #if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
wxSetKeyboardHook(TRUE); wxSetKeyboardHook(true);
#endif #endif
callBaseCleanup.Dismiss(); callBaseCleanup.Dismiss();
@@ -430,7 +430,7 @@ bool wxApp::RegisterWindowClasses()
wxLogLastError(wxT("RegisterClass(no redraw MDI child)")); wxLogLastError(wxT("RegisterClass(no redraw MDI child)"));
} }
return TRUE; return true;
} }
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
@@ -439,7 +439,7 @@ bool wxApp::RegisterWindowClasses()
bool wxApp::UnregisterWindowClasses() bool wxApp::UnregisterWindowClasses()
{ {
bool retval = TRUE; bool retval = true;
#ifndef __WXMICROWIN__ #ifndef __WXMICROWIN__
// MDI frame window class. // MDI frame window class.
@@ -447,7 +447,7 @@ bool wxApp::UnregisterWindowClasses()
{ {
wxLogLastError(wxT("UnregisterClass(MDI parent)")); wxLogLastError(wxT("UnregisterClass(MDI parent)"));
retval = FALSE; retval = false;
} }
// "no redraw" MDI frame // "no redraw" MDI frame
@@ -455,7 +455,7 @@ bool wxApp::UnregisterWindowClasses()
{ {
wxLogLastError(wxT("UnregisterClass(no redraw MDI parent frame)")); wxLogLastError(wxT("UnregisterClass(no redraw MDI parent frame)"));
retval = FALSE; retval = false;
} }
// MDI child frame window class. // MDI child frame window class.
@@ -463,7 +463,7 @@ bool wxApp::UnregisterWindowClasses()
{ {
wxLogLastError(wxT("UnregisterClass(MDI child)")); wxLogLastError(wxT("UnregisterClass(MDI child)"));
retval = FALSE; retval = false;
} }
// "no redraw" MDI child frame // "no redraw" MDI child frame
@@ -471,7 +471,7 @@ bool wxApp::UnregisterWindowClasses()
{ {
wxLogLastError(wxT("UnregisterClass(no redraw MDI child)")); wxLogLastError(wxT("UnregisterClass(no redraw MDI child)"));
retval = FALSE; retval = false;
} }
// canvas class name // canvas class name
@@ -479,14 +479,14 @@ bool wxApp::UnregisterWindowClasses()
{ {
wxLogLastError(wxT("UnregisterClass(canvas)")); wxLogLastError(wxT("UnregisterClass(canvas)"));
retval = FALSE; retval = false;
} }
if ( !::UnregisterClass(wxCanvasClassNameNR, wxhInstance) ) if ( !::UnregisterClass(wxCanvasClassNameNR, wxhInstance) )
{ {
wxLogLastError(wxT("UnregisterClass(no redraw canvas)")); wxLogLastError(wxT("UnregisterClass(no redraw canvas)"));
retval = FALSE; retval = false;
} }
#endif // __WXMICROWIN__ #endif // __WXMICROWIN__
@@ -502,7 +502,7 @@ void wxApp::CleanUp()
wxAppBase::CleanUp(); wxAppBase::CleanUp();
#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__) #if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
wxSetKeyboardHook(FALSE); wxSetKeyboardHook(false);
#endif #endif
#if wxUSE_PENWINDOWS #if wxUSE_PENWINDOWS
@@ -604,7 +604,7 @@ void wxApp::WakeUpIdle()
void wxApp::OnEndSession(wxCloseEvent& WXUNUSED(event)) void wxApp::OnEndSession(wxCloseEvent& WXUNUSED(event))
{ {
if (GetTopWindow()) if (GetTopWindow())
GetTopWindow()->Close(TRUE); GetTopWindow()->Close(true);
} }
// Default behaviour: close the application with prompts. The // Default behaviour: close the application with prompts. The
@@ -614,7 +614,7 @@ void wxApp::OnQueryEndSession(wxCloseEvent& event)
if (GetTopWindow()) if (GetTopWindow())
{ {
if (!GetTopWindow()->Close(!event.CanVeto())) if (!GetTopWindow()->Close(!event.CanVeto()))
event.Veto(TRUE); event.Veto(true);
} }
} }
@@ -713,7 +713,7 @@ int wxApp::GetComCtl32Version()
bool wxApp::Yield(bool onlyIfNeeded) bool wxApp::Yield(bool onlyIfNeeded)
{ {
// MT-FIXME // MT-FIXME
static bool s_inYield = FALSE; static bool s_inYield = false;
#if wxUSE_LOG #if wxUSE_LOG
// disable log flushing from here because a call to wxYield() shouldn't // disable log flushing from here because a call to wxYield() shouldn't
@@ -728,10 +728,10 @@ bool wxApp::Yield(bool onlyIfNeeded)
wxFAIL_MSG( wxT("wxYield called recursively" ) ); wxFAIL_MSG( wxT("wxYield called recursively" ) );
} }
return FALSE; return false;
} }
s_inYield = TRUE; s_inYield = true;
// we don't want to process WM_QUIT from here - it should be processed in // we don't want to process WM_QUIT from here - it should be processed in
// the main event loop in order to stop it // the main event loop in order to stop it
@@ -755,9 +755,9 @@ bool wxApp::Yield(bool onlyIfNeeded)
wxLog::Resume(); wxLog::Resume();
#endif // wxUSE_LOG #endif // wxUSE_LOG
s_inYield = FALSE; s_inYield = false;
return TRUE; return true;
} }
#if wxUSE_EXCEPTIONS #if wxUSE_EXCEPTIONS