You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Add String::replace_char(s) methods for performance and convenience
This commit is contained in:
@@ -940,7 +940,7 @@ void DocTools::generate(BitField<GenerateFlags> p_flags) {
|
||||
DocData::ConstantDoc constant;
|
||||
constant.name = E;
|
||||
Variant value = Variant::get_constant_value(Variant::Type(i), E);
|
||||
constant.value = value.get_type() == Variant::INT ? itos(value) : value.get_construct_string().replace("\n", " ");
|
||||
constant.value = value.get_type() == Variant::INT ? itos(value) : value.get_construct_string().replace_char('\n', ' ');
|
||||
constant.is_value_valid = true;
|
||||
constant.type = Variant::get_type_name(value.get_type());
|
||||
c.constants.push_back(constant);
|
||||
|
||||
Reference in New Issue
Block a user