diff --git a/include/wx/confbase.h b/include/wx/confbase.h index 936e22190c..584d4de71c 100644 --- a/include/wx/confbase.h +++ b/include/wx/confbase.h @@ -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; diff --git a/src/common/config.cpp b/src/common/config.cpp index da8e5b0901..129c866e99 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -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