X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad9835c97c10c0d7de345e3a7a7c0fc2776eb2cb..047c1182f94ca7941b08170cddbb5880f1023055:/src/msw/iniconf.cpp?ds=sidebyside diff --git a/src/msw/iniconf.cpp b/src/msw/iniconf.cpp index 5761d72e19..94f347b589 100644 --- a/src/msw/iniconf.cpp +++ b/src/msw/iniconf.cpp @@ -21,26 +21,21 @@ #if wxUSE_CONFIG && !wxUSE_UNICODE #ifndef WX_PRECOMP - #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/msw/wrapwin.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/log.h" #include "wx/config.h" #include "wx/file.h" #include "wx/msw/iniconf.h" -// _WINDOWS_ is defined when windows.h is included, -// __WXMSW__ is defined for MS Windows compilation -#if defined(__WXMSW__) && !defined(_WINDOWS_) - #include "wx/msw/wrapwin.h" -#endif //windows.h - // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- @@ -55,6 +50,7 @@ // ---------------------------------------------------------------------------- // ctor & dtor // ---------------------------------------------------------------------------- +IMPLEMENT_ABSTRACT_CLASS(wxIniConfig, wxConfigBase) wxIniConfig::wxIniConfig(const wxString& strAppName, const wxString& strVendor, @@ -265,11 +261,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; @@ -291,13 +287,13 @@ bool wxIniConfig::DoReadString(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(szBuf) ) { + if ( wxIsEmpty(szBuf) ) { // now look in win.ini wxString strKey = GetKeyName(path.Name()); GetProfileString(m_strGroup, strKey, "", szBuf, WXSIZEOF(szBuf)); } - if ( ::IsEmpty(szBuf) ) + if ( wxIsEmpty(szBuf) ) return false; *pstr = szBuf;