mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03: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:
@@ -295,7 +295,7 @@ Error EditorInterface::save_scene() {
|
||||
if (!get_edited_scene_root()) {
|
||||
return ERR_CANT_CREATE;
|
||||
}
|
||||
if (get_edited_scene_root()->get_scene_file_path() == String()) {
|
||||
if (get_edited_scene_root()->get_scene_file_path().is_empty()) {
|
||||
return ERR_CANT_CREATE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user