You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Replace String comparisons with "", String() to is_empty()
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
This commit is contained in:
@@ -257,7 +257,7 @@ Error EditorExportPlatformUWP::export_project(const Ref<EditorExportPreset> &p_p
|
||||
|
||||
Platform arch = (Platform)(int)p_preset->get("architecture/target");
|
||||
|
||||
if (src_appx == "") {
|
||||
if (src_appx.is_empty()) {
|
||||
String err, infix;
|
||||
switch (arch) {
|
||||
case ARM: {
|
||||
@@ -275,7 +275,7 @@ Error EditorExportPlatformUWP::export_project(const Ref<EditorExportPreset> &p_p
|
||||
} else {
|
||||
src_appx = find_export_template("uwp" + infix + "release.zip", &err);
|
||||
}
|
||||
if (src_appx == "") {
|
||||
if (src_appx.is_empty()) {
|
||||
EditorNode::add_io_error(err);
|
||||
return ERR_FILE_NOT_FOUND;
|
||||
}
|
||||
@@ -431,7 +431,7 @@ Error EditorExportPlatformUWP::export_project(const Ref<EditorExportPreset> &p_p
|
||||
#ifdef WINDOWS_ENABLED
|
||||
// Sign with signtool
|
||||
String signtool_path = EditorSettings::get_singleton()->get("export/uwp/signtool");
|
||||
if (signtool_path == String()) {
|
||||
if (signtool_path.is_empty()) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -452,7 +452,7 @@ Error EditorExportPlatformUWP::export_project(const Ref<EditorExportPreset> &p_p
|
||||
cert_alg = p_preset->get("signing/algorithm");
|
||||
}
|
||||
|
||||
if (cert_path == String()) {
|
||||
if (cert_path.is_empty()) {
|
||||
return OK; // Certificate missing, don't try to sign
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user