fixed signed/unsigned comparison warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -60,7 +60,7 @@ IMPLEMENT_CLASS(wxHtmlTagsCache,wxObject)
|
|||||||
wxHtmlTagsCache::wxHtmlTagsCache(const wxString& source)
|
wxHtmlTagsCache::wxHtmlTagsCache(const wxString& source)
|
||||||
{
|
{
|
||||||
const wxChar *src = source.c_str();
|
const wxChar *src = source.c_str();
|
||||||
int i, tg, pos, stpos;
|
int tg, stpos;
|
||||||
int lng = source.Length();
|
int lng = source.Length();
|
||||||
wxChar tagBuffer[256];
|
wxChar tagBuffer[256];
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ wxHtmlTagsCache::wxHtmlTagsCache(const wxString& source)
|
|||||||
m_CacheSize = 0;
|
m_CacheSize = 0;
|
||||||
m_CachePos = 0;
|
m_CachePos = 0;
|
||||||
|
|
||||||
pos = 0;
|
int pos = 0;
|
||||||
while (pos < lng)
|
while (pos < lng)
|
||||||
{
|
{
|
||||||
if (src[pos] == wxT('<')) // tag found:
|
if (src[pos] == wxT('<')) // tag found:
|
||||||
@@ -78,6 +78,7 @@ wxHtmlTagsCache::wxHtmlTagsCache(const wxString& source)
|
|||||||
tg = m_CacheSize++;
|
tg = m_CacheSize++;
|
||||||
m_Cache[tg].Key = stpos = pos++;
|
m_Cache[tg].Key = stpos = pos++;
|
||||||
|
|
||||||
|
size_t i;
|
||||||
for ( i = 0;
|
for ( i = 0;
|
||||||
pos < lng && i < WXSIZEOF(tagBuffer) - 1 &&
|
pos < lng && i < WXSIZEOF(tagBuffer) - 1 &&
|
||||||
src[pos] != wxT('>') && !wxIsspace(src[pos]);
|
src[pos] != wxT('>') && !wxIsspace(src[pos]);
|
||||||
@@ -114,7 +115,7 @@ wxHtmlTagsCache::wxHtmlTagsCache(const wxString& source)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ok, we're done, now we'll free .Name members of cache - we don't need it anymore:
|
// ok, we're done, now we'll free .Name members of cache - we don't need it anymore:
|
||||||
for (i = 0; i < m_CacheSize; i++)
|
for (int i = 0; i < m_CacheSize; i++)
|
||||||
{
|
{
|
||||||
delete[] m_Cache[i].Name;
|
delete[] m_Cache[i].Name;
|
||||||
m_Cache[i].Name = NULL;
|
m_Cache[i].Name = NULL;
|
||||||
|
Reference in New Issue
Block a user