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
|
|
@ -131,7 +131,7 @@ EditorPaths::EditorPaths() {
|
|||
}
|
||||
}
|
||||
|
||||
paths_valid = (data_path != "" && config_path != "" && cache_path != "");
|
||||
paths_valid = (!data_path.is_empty() && !config_path.is_empty() && !cache_path.is_empty());
|
||||
ERR_FAIL_COND_MSG(!paths_valid, "Editor data, config, or cache paths are invalid.");
|
||||
|
||||
// Validate or create each dir and its relevant subdirectories.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue