mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Call process right when it's needed.
This commit is contained in:
parent
ae3b14ad0c
commit
65ddfe2353
@ -186,6 +186,7 @@ void HTMLParser::parse(const String &data) {
|
|||||||
HTMLParserTag t;
|
HTMLParserTag t;
|
||||||
|
|
||||||
t.data = data.substr(i, j - i + 1);
|
t.data = data.substr(i, j - i + 1);
|
||||||
|
t.process();
|
||||||
|
|
||||||
tags.push_back(t);
|
tags.push_back(t);
|
||||||
|
|
||||||
@ -209,10 +210,6 @@ void HTMLParser::parse(const String &data) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < tags.size(); ++i) {
|
|
||||||
tags[i].process();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HTMLParser::HTMLParser() {
|
HTMLParser::HTMLParser() {
|
||||||
|
Loading…
Reference in New Issue
Block a user