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:
parent
31ded7e126
commit
49403cbfa0
226 changed files with 1051 additions and 1034 deletions
|
|
@ -525,7 +525,7 @@ void ImportDock::_reimport() {
|
|||
Ref<ResourceImporter> importer = ResourceFormatImporter::get_singleton()->get_importer_by_name(importer_name);
|
||||
ERR_CONTINUE(!importer.is_valid());
|
||||
String group_file_property = importer->get_option_group_file();
|
||||
if (group_file_property != String()) {
|
||||
if (!group_file_property.is_empty()) {
|
||||
//can import from a group (as in, atlas)
|
||||
ERR_CONTINUE(!params->values.has(group_file_property));
|
||||
String group_file = params->values[group_file_property];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue