mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-30 12:59:18 +01:00
More fixes.
This commit is contained in:
parent
30c3baba7c
commit
d786fb5722
@ -472,7 +472,8 @@ void BBCodeParser::parse(const String &data) {
|
||||
// tag
|
||||
for (int j = i + 1; j < data.size(); ++j) {
|
||||
if (data[j] == ']') {
|
||||
Ref<BBCodeParserTag> t = memnew(BBCodeParserTag);
|
||||
Ref<BBCodeParserTag> t;
|
||||
t.instance();
|
||||
|
||||
t->set_data(data.substr(i, j - i + 1));
|
||||
t->process();
|
||||
@ -488,7 +489,8 @@ void BBCodeParser::parse(const String &data) {
|
||||
|
||||
for (int j = i + 1; j < data.size(); ++j) {
|
||||
if (data[j] == '[') {
|
||||
Ref<BBCodeParserTag> t = memnew(BBCodeParserTag);
|
||||
Ref<BBCodeParserTag> t;
|
||||
t.instance();
|
||||
|
||||
t->set_data(data.substr(i, j - i));
|
||||
t->set_type(BBCodeParserTag::BBCODE_PARSER_TAG_TYPE_CONTENT);
|
||||
|
@ -531,7 +531,8 @@ void HTMLParser::parse(const String &data) {
|
||||
|
||||
for (int j = i + 1; j < data.size(); ++j) {
|
||||
if (data[j] == '>') {
|
||||
Ref<HTMLParserTag> t = memnew(HTMLParserTag);
|
||||
Ref<HTMLParserTag> t;
|
||||
t.instance();
|
||||
|
||||
t->set_data(data.substr(i, j - i + 1));
|
||||
t->process();
|
||||
@ -547,7 +548,8 @@ void HTMLParser::parse(const String &data) {
|
||||
|
||||
for (int j = i + 1; j < data.size(); ++j) {
|
||||
if (data[j] == '<') {
|
||||
Ref<HTMLParserTag> t = memnew(HTMLParserTag);
|
||||
Ref<HTMLParserTag> t;
|
||||
t.instance();
|
||||
|
||||
t->set_data(data.substr(i, j - i));
|
||||
t->set_type(HTMLParserTag::HTML_PARSER_TAG_TYPE_CONTENT);
|
||||
@ -603,7 +605,8 @@ void HTMLParser::parse(const String &data) {
|
||||
|
||||
if (done) {
|
||||
state = STATE_NONE;
|
||||
Ref<HTMLParserTag> t = memnew(HTMLParserTag);
|
||||
Ref<HTMLParserTag> t;
|
||||
t.instance();
|
||||
|
||||
t->set_data(data.substr(i, j - i));
|
||||
t->set_type(HTMLParserTag::HTML_PARSER_TAG_TYPE_CONTENT);
|
||||
|
Loading…
Reference in New Issue
Block a user