You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename empty() to is_empty()
This commit is contained in:
@@ -641,7 +641,7 @@ class EditorExportPlatformUWP : public EditorExportPlatform {
|
||||
};
|
||||
|
||||
bool _valid_resource_name(const String &p_name) const {
|
||||
if (p_name.empty()) {
|
||||
if (p_name.is_empty()) {
|
||||
return false;
|
||||
}
|
||||
if (p_name.ends_with(".")) {
|
||||
@@ -687,7 +687,7 @@ class EditorExportPlatformUWP : public EditorExportPlatform {
|
||||
}
|
||||
|
||||
bool _valid_bgcolor(const String &p_color) const {
|
||||
if (p_color.empty()) {
|
||||
if (p_color.is_empty()) {
|
||||
return true;
|
||||
}
|
||||
if (p_color.begins_with("#") && p_color.is_valid_html_color()) {
|
||||
@@ -763,7 +763,7 @@ class EditorExportPlatformUWP : public EditorExportPlatform {
|
||||
String architecture = arch == ARM ? "arm" : arch == X86 ? "x86" : "x64";
|
||||
result = result.replace("$architecture$", architecture);
|
||||
|
||||
result = result.replace("$display_name$", String(p_preset->get("package/display_name")).empty() ? (String)ProjectSettings::get_singleton()->get("application/config/name") : String(p_preset->get("package/display_name")));
|
||||
result = result.replace("$display_name$", String(p_preset->get("package/display_name")).is_empty() ? (String)ProjectSettings::get_singleton()->get("application/config/name") : String(p_preset->get("package/display_name")));
|
||||
|
||||
result = result.replace("$publisher_display_name$", p_preset->get("package/publisher_display_name"));
|
||||
result = result.replace("$app_description$", p_preset->get("package/description"));
|
||||
@@ -782,7 +782,7 @@ class EditorExportPlatformUWP : public EditorExportPlatform {
|
||||
}
|
||||
|
||||
String show_name_on_tiles = "";
|
||||
if (!name_on_tiles.empty()) {
|
||||
if (!name_on_tiles.is_empty()) {
|
||||
show_name_on_tiles = "<uap:ShowNameOnTiles>\n" + name_on_tiles + " </uap:ShowNameOnTiles>";
|
||||
}
|
||||
|
||||
@@ -803,7 +803,7 @@ class EditorExportPlatformUWP : public EditorExportPlatform {
|
||||
}
|
||||
|
||||
String rotation_preference = "";
|
||||
if (!rotations.empty()) {
|
||||
if (!rotations.is_empty()) {
|
||||
rotation_preference = "<uap:InitialRotationPreference>\n" + rotations + " </uap:InitialRotationPreference>";
|
||||
}
|
||||
|
||||
@@ -837,7 +837,7 @@ class EditorExportPlatformUWP : public EditorExportPlatform {
|
||||
}
|
||||
|
||||
String capabilities_string = "<Capabilities />";
|
||||
if (!capabilities_elements.empty()) {
|
||||
if (!capabilities_elements.is_empty()) {
|
||||
capabilities_string = "<Capabilities>\n" + capabilities_elements + " </Capabilities>";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user