mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 18:33:36 +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:
parent
31ded7e126
commit
49403cbfa0
226 changed files with 1051 additions and 1034 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue