No changes, just remove a level of indentation in wxHtmlTagsCache ctor.
Get rid of characters not starting a tag immediately in the beginning of the loop instead of putting the entire loop body inside an if statement. This doesn't change anything (this becomes more apparent if the patch is viewed with "ignore white space changes" option) except making the code easier to read and modify. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -85,10 +85,13 @@ wxHtmlTagsCache::wxHtmlTagsCache(const wxString& source)
|
|||||||
const wxString::const_iterator end = source.end();
|
const wxString::const_iterator end = source.end();
|
||||||
for ( wxString::const_iterator pos = source.begin(); pos < end; ++pos )
|
for ( wxString::const_iterator pos = source.begin(); pos < end; ++pos )
|
||||||
{
|
{
|
||||||
if (*pos == wxT('<')) // tag found:
|
if (*pos != wxT('<'))
|
||||||
{
|
continue;
|
||||||
|
|
||||||
|
// possible tag start found:
|
||||||
|
|
||||||
// don't cache comment tags
|
// don't cache comment tags
|
||||||
if ( wxHtmlParser::SkipCommentTag(pos, source.end()) )
|
if ( wxHtmlParser::SkipCommentTag(pos, end) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
size_t tg = Cache().size();
|
size_t tg = Cache().size();
|
||||||
@@ -199,7 +202,6 @@ 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 ( wxHtmlTagsCacheData::iterator i = Cache().begin();
|
for ( wxHtmlTagsCacheData::iterator i = Cache().begin();
|
||||||
|
Reference in New Issue
Block a user