X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..49efebe2471223dafe8591aeeb194b8d4adc78bd:/include/wx/confbase.h diff --git a/include/wx/confbase.h b/include/wx/confbase.h index 3f7b02e35d..9df8edcc0a 100644 --- a/include/wx/confbase.h +++ b/include/wx/confbase.h @@ -32,19 +32,17 @@ class WXDLLIMPEXP_FWD_BASE wxArrayString; /// separates group and entry names (probably shouldn't be changed) #ifndef wxCONFIG_PATH_SEPARATOR - #define wxCONFIG_PATH_SEPARATOR _T('/') + #define wxCONFIG_PATH_SEPARATOR wxT('/') #endif /// introduces immutable entries // (i.e. the ones which can't be changed from the local config file) #ifndef wxCONFIG_IMMUTABLE_PREFIX - #define wxCONFIG_IMMUTABLE_PREFIX _T('!') + #define wxCONFIG_IMMUTABLE_PREFIX wxT('!') #endif #if wxUSE_CONFIG -#include "wx/string.h" - /// should we use registry instead of configuration files under Windows? // (i.e. whether wxConfigBase::Create() will create a wxFileConfig (if it's // false) or wxRegConfig (if it's true and we're under Win32)) @@ -56,6 +54,7 @@ class WXDLLIMPEXP_FWD_BASE wxArrayString; // symbol if the template functions are available #if (!defined(__VISUALC__) || __VISUALC__ > 1200) && \ !defined( __VMS ) && \ + !(defined(__HP_aCC) && defined(__hppa)) && \ !defined (__DMC__) #define wxHAS_CONFIG_TEMPLATE_RW #endif @@ -218,7 +217,7 @@ public: } #endif // wxHAS_CONFIG_TEMPLATE_RW - // convenience functions returning directly the value + // convenience functions returning directly the value wxString Read(const wxString& key, const wxString& defVal = wxEmptyString) const { wxString s; (void)Read(key, &s, defVal); return s; } @@ -227,10 +226,8 @@ public: // template Read() would be used wxString Read(const wxString& key, const char* defVal) const { return Read(key, wxString(defVal)); } -#if wxUSE_WCHAR_T wxString Read(const wxString& key, const wchar_t* defVal) const { return Read(key, wxString(defVal)); } -#endif long ReadLong(const wxString& key, long defVal) const { long l; (void)Read(key, &l, defVal); return l; } @@ -274,10 +271,8 @@ public: { return Write(key, wxString(value)); } bool Write(const wxString& key, const unsigned char *value) { return Write(key, wxString(value)); } -#if wxUSE_WCHAR_T bool Write(const wxString& key, const wchar_t *value) { return Write(key, wxString(value)); } -#endif // we also have to provide specializations for other types which we want to