fixed wxConfig bug I've introduced yesterday

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-05-27 18:53:26 +00:00
parent 0537351f78
commit e1b8d4d841
2 changed files with 2 additions and 9 deletions

View File

@ -184,10 +184,9 @@ public:
virtual bool Write(const wxString& key, const wxString& value) = 0;
virtual bool Write(const wxString& key, long value) = 0;
// Convenience functions
// convenience functions
virtual bool Write(const wxString& key, double value);
virtual bool Write(const wxString& key, bool value);
virtual bool Write(const wxString& key, const wxChar *text ) ;
// permanently writes all changes
virtual bool Flush(bool bCurrentOnly = FALSE) = 0;

View File

@ -203,13 +203,7 @@ bool wxConfigBase::Write(const wxString& key, double val)
bool wxConfigBase::Write(const wxString& key, bool value)
{
long l = (value ? 1 : 0);
return Write(key, l);
}
bool wxConfigBase::Write(const wxString &key, const wxChar *text)
{
return Write(key, text);
return Write(key, value ? 1l : 0l);
}
wxString wxConfigBase::ExpandEnvVars(const wxString& str) const