You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +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:
@@ -160,7 +160,7 @@ void FileAccessUnix::close() {
|
||||
close_notification_func(path, flags);
|
||||
}
|
||||
|
||||
if (save_path != "") {
|
||||
if (!save_path.is_empty()) {
|
||||
int rename_error = rename((save_path + ".tmp").utf8().get_data(), save_path.utf8().get_data());
|
||||
|
||||
if (rename_error && close_fail_notify) {
|
||||
|
||||
Reference in New Issue
Block a user