Renamed the object() method in HTMLBuilder as it can cause issues with bind generators.

This commit is contained in:
Relintai 2023-06-01 16:50:57 +02:00
parent d093365b00
commit 97f5037c8b
4 changed files with 10 additions and 10 deletions

View File

@ -1334,7 +1334,7 @@ HTMLTag *HTMLBuilder::noscript() {
return _tag.start("noscript"); return _tag.start("noscript");
} }
HTMLTag *HTMLBuilder::object() { HTMLTag *HTMLBuilder::objectt() {
write_tag(); write_tag();
return _tag.start("object"); return _tag.start("object");
@ -2229,7 +2229,7 @@ HTMLBuilder *HTMLBuilder::cnoscript() {
return this; return this;
} }
HTMLBuilder *HTMLBuilder::cobject() { HTMLBuilder *HTMLBuilder::cobjectt() {
write_tag(); write_tag();
result += "</object>"; result += "</object>";

View File

@ -280,7 +280,7 @@ public:
HTMLTag *nav(); HTMLTag *nav();
HTMLTag *noframes(); // Not supported in HTML5. HTMLTag *noframes(); // Not supported in HTML5.
HTMLTag *noscript(); HTMLTag *noscript();
HTMLTag *object(); HTMLTag *objectt(); //<object>, Like "object tag". As having a method named object() can cause issues.
HTMLTag *ol(); HTMLTag *ol();
HTMLTag *optgroup(); HTMLTag *optgroup();
HTMLTag *option(); HTMLTag *option();
@ -424,7 +424,7 @@ public:
HTMLBuilder *cnav(); HTMLBuilder *cnav();
HTMLBuilder *cnoframes(); HTMLBuilder *cnoframes();
HTMLBuilder *cnoscript(); HTMLBuilder *cnoscript();
HTMLBuilder *cobject(); HTMLBuilder *cobjectt();
HTMLBuilder *c_ol(); HTMLBuilder *c_ol();
HTMLBuilder *coptgroup(); HTMLBuilder *coptgroup();
HTMLBuilder *coption(); HTMLBuilder *coption();

View File

@ -1599,7 +1599,7 @@ Ref<_HTMLTag> _HTMLBuilder::noscript() {
return _tag->start("noscript"); return _tag->start("noscript");
} }
Ref<_HTMLTag> _HTMLBuilder::object() { Ref<_HTMLTag> _HTMLBuilder::objectt() {
write_tag(); write_tag();
return _tag->start("object"); return _tag->start("object");
@ -2443,7 +2443,7 @@ Ref<_HTMLBuilder> _HTMLBuilder::cnoscript() {
return Ref<_HTMLBuilder>(this); return Ref<_HTMLBuilder>(this);
} }
Ref<_HTMLBuilder> _HTMLBuilder::cobject() { Ref<_HTMLBuilder> _HTMLBuilder::cobjectt() {
write_tag(); write_tag();
result += "</object>"; result += "</object>";
@ -3728,7 +3728,7 @@ void _HTMLBuilder::_bind_methods() {
ClassDB::bind_method(D_METHOD("nav"), &_HTMLBuilder::nav); ClassDB::bind_method(D_METHOD("nav"), &_HTMLBuilder::nav);
ClassDB::bind_method(D_METHOD("noframes"), &_HTMLBuilder::noframes); ClassDB::bind_method(D_METHOD("noframes"), &_HTMLBuilder::noframes);
ClassDB::bind_method(D_METHOD("noscript"), &_HTMLBuilder::noscript); ClassDB::bind_method(D_METHOD("noscript"), &_HTMLBuilder::noscript);
ClassDB::bind_method(D_METHOD("object"), &_HTMLBuilder::object); ClassDB::bind_method(D_METHOD("objectt"), &_HTMLBuilder::objectt);
ClassDB::bind_method(D_METHOD("ol"), &_HTMLBuilder::ol); ClassDB::bind_method(D_METHOD("ol"), &_HTMLBuilder::ol);
ClassDB::bind_method(D_METHOD("optgroup"), &_HTMLBuilder::optgroup); ClassDB::bind_method(D_METHOD("optgroup"), &_HTMLBuilder::optgroup);
@ -3876,7 +3876,7 @@ void _HTMLBuilder::_bind_methods() {
ClassDB::bind_method(D_METHOD("cnoframes"), &_HTMLBuilder::cnoframes); ClassDB::bind_method(D_METHOD("cnoframes"), &_HTMLBuilder::cnoframes);
ClassDB::bind_method(D_METHOD("cnoscript"), &_HTMLBuilder::cnoscript); ClassDB::bind_method(D_METHOD("cnoscript"), &_HTMLBuilder::cnoscript);
ClassDB::bind_method(D_METHOD("cobject"), &_HTMLBuilder::cobject); ClassDB::bind_method(D_METHOD("cobjectt"), &_HTMLBuilder::cobjectt);
ClassDB::bind_method(D_METHOD("c_ol"), &_HTMLBuilder::c_ol); ClassDB::bind_method(D_METHOD("c_ol"), &_HTMLBuilder::c_ol);
ClassDB::bind_method(D_METHOD("coptgroup"), &_HTMLBuilder::coptgroup); ClassDB::bind_method(D_METHOD("coptgroup"), &_HTMLBuilder::coptgroup);
ClassDB::bind_method(D_METHOD("coption"), &_HTMLBuilder::coption); ClassDB::bind_method(D_METHOD("coption"), &_HTMLBuilder::coption);

View File

@ -294,7 +294,7 @@ public:
Ref<_HTMLTag> nav(); Ref<_HTMLTag> nav();
Ref<_HTMLTag> noframes(); // Not supported in HTML5. Ref<_HTMLTag> noframes(); // Not supported in HTML5.
Ref<_HTMLTag> noscript(); Ref<_HTMLTag> noscript();
Ref<_HTMLTag> object(); Ref<_HTMLTag> objectt(); //<object>, Like "object tag". As having a method named object() can cause issues.
Ref<_HTMLTag> ol(); Ref<_HTMLTag> ol();
Ref<_HTMLTag> optgroup(); Ref<_HTMLTag> optgroup();
Ref<_HTMLTag> option(const String &value = ""); Ref<_HTMLTag> option(const String &value = "");
@ -426,7 +426,7 @@ public:
Ref<_HTMLBuilder> cnav(); Ref<_HTMLBuilder> cnav();
Ref<_HTMLBuilder> cnoframes(); Ref<_HTMLBuilder> cnoframes();
Ref<_HTMLBuilder> cnoscript(); Ref<_HTMLBuilder> cnoscript();
Ref<_HTMLBuilder> cobject(); Ref<_HTMLBuilder> cobjectt();
Ref<_HTMLBuilder> c_ol(); Ref<_HTMLBuilder> c_ol();
Ref<_HTMLBuilder> coptgroup(); Ref<_HTMLBuilder> coptgroup();
Ref<_HTMLBuilder> coption(); Ref<_HTMLBuilder> coption();