use wxIsEmpty() instead of deprecated IsEmpty()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -261,11 +261,11 @@ bool wxIniConfig::IsEmpty() const
|
|||||||
|
|
||||||
GetPrivateProfileString(m_strGroup, NULL, "",
|
GetPrivateProfileString(m_strGroup, NULL, "",
|
||||||
szBuf, WXSIZEOF(szBuf), m_strLocalFilename);
|
szBuf, WXSIZEOF(szBuf), m_strLocalFilename);
|
||||||
if ( !::IsEmpty(szBuf) )
|
if ( !wxIsEmpty(szBuf) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
GetProfileString(m_strGroup, NULL, "", szBuf, WXSIZEOF(szBuf));
|
GetProfileString(m_strGroup, NULL, "", szBuf, WXSIZEOF(szBuf));
|
||||||
if ( !::IsEmpty(szBuf) )
|
if ( !wxIsEmpty(szBuf) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -287,13 +287,13 @@ bool wxIniConfig::DoReadString(const wxString& szKey, wxString *pstr) const
|
|||||||
// NB: the lpDefault param to GetPrivateProfileString can't be NULL
|
// NB: the lpDefault param to GetPrivateProfileString can't be NULL
|
||||||
GetPrivateProfileString(m_strGroup, strKey, "",
|
GetPrivateProfileString(m_strGroup, strKey, "",
|
||||||
szBuf, WXSIZEOF(szBuf), m_strLocalFilename);
|
szBuf, WXSIZEOF(szBuf), m_strLocalFilename);
|
||||||
if ( ::IsEmpty(szBuf) ) {
|
if ( wxIsEmpty(szBuf) ) {
|
||||||
// now look in win.ini
|
// now look in win.ini
|
||||||
wxString strKey = GetKeyName(path.Name());
|
wxString strKey = GetKeyName(path.Name());
|
||||||
GetProfileString(m_strGroup, strKey, "", szBuf, WXSIZEOF(szBuf));
|
GetProfileString(m_strGroup, strKey, "", szBuf, WXSIZEOF(szBuf));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ::IsEmpty(szBuf) )
|
if ( wxIsEmpty(szBuf) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
*pstr = szBuf;
|
*pstr = szBuf;
|
||||||
|
Reference in New Issue
Block a user