mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +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;
|
||||
|
||||
t.data = data.substr(i, j - i + 1);
|
||||
t.process();
|
||||
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user