X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ec05cc986d7be5cb2ae6429ef30cb83b9fee3ef..bd0df01f3f59940fdbca7a3472c256be2d034ab9:/src/common/log.cpp diff --git a/src/common/log.cpp b/src/common/log.cpp index 8a50359699..447f2feda9 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -32,6 +32,7 @@ #include #include #include + #include #include #include @@ -40,6 +41,7 @@ #include #include +#include #include // other standard headers @@ -308,7 +310,7 @@ void wxLog::DoLog(wxLogLevel level, const char *szString) } } -void wxLog::DoLogString(const char *szString) +void wxLog::DoLogString(const char *WXUNUSED(szString)) { wxFAIL_MSG("DoLogString must be overrided if it's called."); } @@ -558,19 +560,19 @@ wxLogFrame::wxLogFrame(const char *szTitle) // @@ what about status bar? needed (for menu prompts)? } -void wxLogFrame::OnClose(wxCommandEvent& event) +void wxLogFrame::OnClose(wxCommandEvent& WXUNUSED(event)) { // just hide the window Show(FALSE); } -void wxLogFrame::OnCloseWindow(wxCloseEvent& event) +void wxLogFrame::OnCloseWindow(wxCloseEvent& WXUNUSED(event)) { // just hide the window Show(FALSE); } -void wxLogFrame::OnSave(wxCommandEvent& event) +void wxLogFrame::OnSave(wxCommandEvent& WXUNUSED(event)) { // get the file name // ----------------- @@ -583,9 +585,9 @@ void wxLogFrame::OnSave(wxCommandEvent& event) // open file // --------- wxFile file; - bool bOk; + bool bOk = FALSE; if ( wxFile::Exists(szFileName) ) { - bool bAppend; + bool bAppend = FALSE; wxString strMsg; strMsg.Printf(_("Append log to file '%s' " "(choosing [No] will overwrite it)?"), szFileName); @@ -637,7 +639,7 @@ void wxLogFrame::OnSave(wxCommandEvent& event) } } -void wxLogFrame::OnClear(wxCommandEvent& event) +void wxLogFrame::OnClear(wxCommandEvent& WXUNUSED(event)) { m_pTextCtrl->Clear(); } @@ -786,7 +788,7 @@ const char *wxSysErrorMsg(unsigned long nErrCode) LocalFree(lpMsgBuf); // returned string is capitalized and ended with '\r\n' - bad - s_szBuf[0] = (char)tolower(s_szBuf[0]); + s_szBuf[0] = (char)wxToLower(s_szBuf[0]); size_t len = strlen(s_szBuf); if ( len > 0 ) { // truncate string