really fixed wxConfig bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-05-27 19:01:38 +00:00
parent e1b8d4d841
commit 68275b8532
2 changed files with 11 additions and 1 deletions

View File

@@ -206,6 +206,12 @@ bool wxConfigBase::Write(const wxString& key, bool value)
return Write(key, value ? 1l : 0l);
}
bool wxConfigBase::Write(const wxString& key, const wxChar *value)
{
// explicit cast needed, otherwise value would have been converted to bool
return Write(key, wxString(value));
}
wxString wxConfigBase::ExpandEnvVars(const wxString& str) const
{
wxString tmp; // Required for BC++