You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Rename empty() to is_empty()
This commit is contained in:
@@ -47,7 +47,7 @@ const char *JSON::tk_name[TK_MAX] = {
|
||||
|
||||
static String _make_indent(const String &p_indent, int p_size) {
|
||||
String indent_text = "";
|
||||
if (!p_indent.empty()) {
|
||||
if (!p_indent.is_empty()) {
|
||||
for (int i = 0; i < p_size; i++) {
|
||||
indent_text += p_indent;
|
||||
}
|
||||
@@ -59,7 +59,7 @@ String JSON::_print_var(const Variant &p_var, const String &p_indent, int p_cur_
|
||||
String colon = ":";
|
||||
String end_statement = "";
|
||||
|
||||
if (!p_indent.empty()) {
|
||||
if (!p_indent.is_empty()) {
|
||||
colon += " ";
|
||||
end_statement += "\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user