From c5c16a30253c56424179ce6d427e91f1283c7772 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 3 Aug 1998 23:23:56 +0000 Subject: [PATCH] 1) wxFileConfig now longer tries to delete system-wide config file in DeleteAll (only the user's one) 2) wxLogStream "un#indef'ed" under wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fileconf.cpp | 8 +++----- src/common/log.cpp | 6 +----- 2 files changed, 4 insertions(+), 10 deletions(-) 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; } // ---------------------------------------------------------------------------- -- 2.45.2