From: Stefan Neis Date: Sun, 11 Nov 2007 22:29:50 +0000 (+0000) Subject: Avoid deprecation warnings for ::IsEmpty (patch #1829909) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c22bb3442ec1ddd3a511fb956f424dbf78e08054?ds=inline Avoid deprecation warnings for ::IsEmpty (patch #1829909) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/iniconf.cpp b/src/os2/iniconf.cpp index d2212870c4..1aaa908772 100644 --- a/src/os2/iniconf.cpp +++ b/src/os2/iniconf.cpp @@ -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;