DocData: Fix extraneous space in XML tag without enum hint

This commit is contained in:
Rémi Verschelde 2017-08-25 20:25:17 +02:00
parent f75678a94f
commit 2879a173e3

View File

@ -249,11 +249,11 @@ void DocData::generate(bool p_basic_types) {
if (E->get().flags & METHOD_FLAG_VIRTUAL) if (E->get().flags & METHOD_FLAG_VIRTUAL)
method.qualifiers = "virtual"; method.qualifiers = "virtual";
if (E->get().flags & METHOD_FLAG_CONST) { if (E->get().flags & METHOD_FLAG_CONST) {
if (method.qualifiers != "") if (method.qualifiers != "")
method.qualifiers += " "; method.qualifiers += " ";
method.qualifiers += "const"; method.qualifiers += "const";
} else if (E->get().flags & METHOD_FLAG_VARARG) { } else if (E->get().flags & METHOD_FLAG_VARARG) {
if (method.qualifiers != "") if (method.qualifiers != "")
method.qualifiers += " "; method.qualifiers += " ";
@ -303,8 +303,6 @@ void DocData::generate(bool p_basic_types) {
} else if (arginfo.type == Variant::NIL && arginfo.usage & PROPERTY_USAGE_NIL_IS_VARIANT) { } else if (arginfo.type == Variant::NIL && arginfo.usage & PROPERTY_USAGE_NIL_IS_VARIANT) {
argument.type = "Variant"; argument.type = "Variant";
} else if (arginfo.type == Variant::NIL) {
method.return_type = "void";
} else { } else {
argument.type = Variant::get_type_name(arginfo.type); argument.type = Variant::get_type_name(arginfo.type);
} }