X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..319faba717040fd0af134f4a36fba3f0b8e284ab:/src/common/sysopt.cpp diff --git a/src/common/sysopt.cpp b/src/common/sysopt.cpp index c9834763be..4536efb4fb 100644 --- a/src/common/sysopt.cpp +++ b/src/common/sysopt.cpp @@ -76,13 +76,14 @@ wxString wxSystemOptions::GetOption(const wxString& name) { val = gs_optionValues[idx]; } - else // not set explicitely + else // not set explicitly { // look in the environment: first for a variable named "wx_appname_name" // which can be set to affect the behaviour or just this application // and then for "wx_name" which can be set to change the option globally wxString var(name); var.Replace(wxT("."), wxT("_")); // '.'s not allowed in env var names + var.Replace(wxT("-"), wxT("_")); // and neither are '-'s wxString appname; if ( wxTheApp ) @@ -100,12 +101,7 @@ wxString wxSystemOptions::GetOption(const wxString& name) int wxSystemOptions::GetOptionInt(const wxString& name) { -#ifdef _PACC_VER - // work around the PalmOS pacc compiler bug - return wxAtoi (GetOption(name).data()); -#else return wxAtoi (GetOption(name)); -#endif } bool wxSystemOptions::HasOption(const wxString& name)