mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 10:44:26 +00:00
Rename empty() to is_empty()
This commit is contained in:
parent
886571e0fc
commit
5b937d493f
289 changed files with 898 additions and 898 deletions
|
|
@ -136,7 +136,7 @@ String realpath(const String &p_path) {
|
|||
}
|
||||
|
||||
String join(const String &p_a, const String &p_b) {
|
||||
if (p_a.empty()) {
|
||||
if (p_a.is_empty()) {
|
||||
return p_b;
|
||||
}
|
||||
|
||||
|
|
@ -165,7 +165,7 @@ String relative_to_impl(const String &p_path, const String &p_relative_to) {
|
|||
} else {
|
||||
String base_dir = p_relative_to.get_base_dir();
|
||||
|
||||
if (base_dir.length() <= 2 && (base_dir.empty() || base_dir.ends_with(":"))) {
|
||||
if (base_dir.length() <= 2 && (base_dir.is_empty() || base_dir.ends_with(":"))) {
|
||||
return p_path;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue