X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7ec698211d5d82a009ac80fb354059e9af497508..c3e433b15929171af57df3c9c3c63d6ab8aa720b:/src/os2/iniconf.cpp?ds=sidebyside diff --git a/src/os2/iniconf.cpp b/src/os2/iniconf.cpp index d5730815d0..1aaa908772 100644 --- a/src/os2/iniconf.cpp +++ b/src/os2/iniconf.cpp @@ -12,19 +12,19 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#if wxUSE_CONFIG + #ifndef WX_PRECOMP - #include "wx/string.h" - #include "wx/intl.h" - #include "wx/event.h" - #include "wx/app.h" - #include "wx/utils.h" + #include "wx/dynarray.h" + #include "wx/string.h" + #include "wx/intl.h" + #include "wx/event.h" + #include "wx/app.h" + #include "wx/utils.h" + #include "wx/log.h" #endif //WX_PRECOMP -#include "wx/dynarray.h" -#include "wx/log.h" - #include "wx/config.h" -#if wxUSE_CONFIG #include "wx/os2/iniconf.h" @@ -255,11 +255,11 @@ bool wxIniConfig::IsEmpty() const // GetPrivateProfileString(m_strGroup, NULL, "", // szBuf, WXSIZEOF(szBuf), m_strLocalFilename); - if ( !::IsEmpty(szBuf) ) + if ( !::wxIsEmpty(szBuf) ) return false; // GetProfileString(m_strGroup, NULL, "", szBuf, WXSIZEOF(szBuf)); -// if ( !::IsEmpty(szBuf) ) +// if ( !::wxIsEmpty(szBuf) ) // return false; return true; @@ -281,14 +281,14 @@ bool wxIniConfig::Read(const wxString& szKey, wxString *pstr) const // NB: the lpDefault param to GetPrivateProfileString can't be NULL // GetPrivateProfileString(m_strGroup, strKey, "", // szBuf, WXSIZEOF(szBuf), m_strLocalFilename); - if ( ::IsEmpty((PSZ)szBuf) ) + if ( ::wxIsEmpty((PSZ)szBuf) ) { // now look in win.ini wxString strKey = GetKeyName(path.Name()); // GetProfileString(m_strGroup, strKey, "", szBuf, WXSIZEOF(szBuf)); } - if ( ::IsEmpty((PSZ)szBuf) ) + if ( ::wxIsEmpty((PSZ)szBuf) ) { return false; } @@ -310,14 +310,14 @@ bool wxIniConfig::Read(const wxString& szKey, wxString *pstr, // NB: the lpDefault param to GetPrivateProfileString can't be NULL // GetPrivateProfileString(m_strGroup, strKey, "", // szBuf, WXSIZEOF(szBuf), m_strLocalFilename); - if ( ::IsEmpty((PSZ)szBuf) ) + if ( ::wxIsEmpty((PSZ)szBuf) ) { // now look in win.ini wxString strKey = GetKeyName(path.Name()); // GetProfileString(m_strGroup, strKey, "", szBuf, WXSIZEOF(szBuf)); } - if ( ::IsEmpty((PSZ)szBuf) ) + if ( ::wxIsEmpty((PSZ)szBuf) ) { *pstr = szDefault; return false;