mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +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
|
@ -65,9 +65,9 @@ void OS_LinuxBSD::initialize_joypads() {
|
|||
|
||||
String OS_LinuxBSD::get_unique_id() const {
|
||||
static String machine_id;
|
||||
if (machine_id.empty()) {
|
||||
if (machine_id.is_empty()) {
|
||||
if (FileAccess *f = FileAccess::open("/etc/machine-id", FileAccess::READ)) {
|
||||
while (machine_id.empty() && !f->eof_reached()) {
|
||||
while (machine_id.is_empty() && !f->eof_reached()) {
|
||||
machine_id = f->get_line().strip_edges();
|
||||
}
|
||||
f->close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue