diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 46ea7077a3..a4df6e1d65 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -673,10 +673,6 @@ bool wxFileConfig::DeleteAll() if ( remove(szFile) == -1 ) wxLogSysError(_("can't delete user configuration file '%s'"), szFile); - szFile = m_strGlobalFile; - if ( remove(szFile) ) - wxLogSysError(_("can't delete system configuration file '%s'"), szFile); - m_strLocalFile = m_strGlobalFile = ""; Init(); @@ -1339,8 +1335,10 @@ wxString FilterOut(const wxString& str) break; case '"': - if ( bQuote ) + if ( bQuote ) { c = '"'; + break; + } //else: fall through default: diff --git a/src/common/log.cpp b/src/common/log.cpp index 525f8cfd19..94e4db061f 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -362,17 +362,13 @@ void wxLogStream::DoLogString(const char *szString) // ---------------------------------------------------------------------------- wxLogTextCtrl::wxLogTextCtrl(wxTextCtrl *pTextCtrl) // @@@ TODO: in wxGTK wxTextCtrl doesn't derive from streambuf -#ifndef __WXGTK__ : wxLogStream(new ostream(pTextCtrl)) -#endif //GTK { } wxLogTextCtrl::~wxLogTextCtrl() { - #ifndef __WXGTK__ - delete m_ostr; - #endif //GTK + delete m_ostr; } // ----------------------------------------------------------------------------