You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename empty() to is_empty()
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user