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
This commit is contained in:
@@ -673,10 +673,6 @@ bool wxFileConfig::DeleteAll()
|
|||||||
if ( remove(szFile) == -1 )
|
if ( remove(szFile) == -1 )
|
||||||
wxLogSysError(_("can't delete user configuration file '%s'"), szFile);
|
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 = "";
|
m_strLocalFile = m_strGlobalFile = "";
|
||||||
Init();
|
Init();
|
||||||
|
|
||||||
@@ -1339,8 +1335,10 @@ wxString FilterOut(const wxString& str)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case '"':
|
case '"':
|
||||||
if ( bQuote )
|
if ( bQuote ) {
|
||||||
c = '"';
|
c = '"';
|
||||||
|
break;
|
||||||
|
}
|
||||||
//else: fall through
|
//else: fall through
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@@ -362,17 +362,13 @@ void wxLogStream::DoLogString(const char *szString)
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
wxLogTextCtrl::wxLogTextCtrl(wxTextCtrl *pTextCtrl)
|
wxLogTextCtrl::wxLogTextCtrl(wxTextCtrl *pTextCtrl)
|
||||||
// @@@ TODO: in wxGTK wxTextCtrl doesn't derive from streambuf
|
// @@@ TODO: in wxGTK wxTextCtrl doesn't derive from streambuf
|
||||||
#ifndef __WXGTK__
|
|
||||||
: wxLogStream(new ostream(pTextCtrl))
|
: wxLogStream(new ostream(pTextCtrl))
|
||||||
#endif //GTK
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
wxLogTextCtrl::~wxLogTextCtrl()
|
wxLogTextCtrl::~wxLogTextCtrl()
|
||||||
{
|
{
|
||||||
#ifndef __WXGTK__
|
delete m_ostr;
|
||||||
delete m_ostr;
|
|
||||||
#endif //GTK
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user