first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -462,17 +462,17 @@ bool wxHtmlHelpData::SaveCachedBook(wxHtmlBookRecord *book, wxOutputStream *f)
|
||||
}
|
||||
else
|
||||
{
|
||||
int cnt = 0;
|
||||
int cnt2 = 0;
|
||||
wxHtmlHelpDataItem *parent = m_index[i].parent;
|
||||
for (int j = i-1; j >= 0; j--)
|
||||
{
|
||||
if (m_index[j].book == book && m_index[j].level > 0)
|
||||
cnt++;
|
||||
cnt2++;
|
||||
if (&m_index[j] == parent)
|
||||
break;
|
||||
}
|
||||
wxASSERT(cnt > 0);
|
||||
CacheWriteInt32(f, cnt);
|
||||
wxASSERT(cnt2 > 0);
|
||||
CacheWriteInt32(f, cnt2);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user