X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e7a2c38f28cc685d183bc813bf7cf1af2a08351..7be1f0d91a912a73b110157170124830446e15e1:/include/wx/confbase.h?ds=sidebyside diff --git a/include/wx/confbase.h b/include/wx/confbase.h index 1b51cae526..604e78fe36 100644 --- a/include/wx/confbase.h +++ b/include/wx/confbase.h @@ -76,7 +76,7 @@ extern wxString wxExpandEnvVars(const wxString &sz); extern void wxSplitPath(wxArrayString& aParts, const char *sz); // ---------------------------------------------------------------------------- -// abstract base class wxConfigBase which defines the interface for derived +// abstract base class wxConfigBase which defines the interface for derived // classes // // wxConfig organizes the items in a tree-like structure (modeled after the @@ -222,14 +222,14 @@ public: protected: static bool IsImmutable(const wxString& key) - { return key[0u] == wxCONFIG_IMMUTABLE_PREFIX; } + { return !key.IsEmpty() && key[0u] == wxCONFIG_IMMUTABLE_PREFIX; } private: // are we doing automatic environment variable expansion? bool m_bExpandEnvVars; // do we record default values? bool m_bRecordDefaults; - + // static variables static wxConfigBase *ms_pConfig; static bool ms_bAutoCreate;