X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16193c2b68e0a45d4aa22a923e9ff2b708e4b80c..94799627ee0ad217b2fc41df5bd5bccf59494e00:/include/wx/confbase.h diff --git a/include/wx/confbase.h b/include/wx/confbase.h index abb5f96dd0..fb9f8f7127 100644 --- a/include/wx/confbase.h +++ b/include/wx/confbase.h @@ -90,7 +90,8 @@ public: static wxConfigBase *Set(wxConfigBase *pConfig); // get the config object, creates it on demand unless DontCreateOnDemand // was called - static wxConfigBase *Get() { if ( !ms_pConfig ) Create(); return ms_pConfig; } + static wxConfigBase *Get(bool createOnDemand = TRUE) + { if ( createOnDemand && (!ms_pConfig) ) Create(); return ms_pConfig; } // create a new config object: this function will create the "best" // implementation of wxConfig available for the current platform, see // comments near definition wxUSE_CONFIG_NATIVE for details. It returns