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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user