Simplify StringName to bool conversions.

Move `mutex` include of `string_name.h` to `string_name.cpp`.
This commit is contained in:
Lukas Tenbrink
2025-04-28 17:41:48 +02:00
parent 32eafc18b4
commit 91362a61da
3 changed files with 4 additions and 11 deletions

View File

@@ -30,6 +30,7 @@
#include "string_name.h"
#include "core/os/mutex.h"
#include "core/os/os.h"
#include "core/string/print_string.h"
@@ -176,14 +177,6 @@ int StringName::length() const {
return 0;
}
bool StringName::is_empty() const {
if (_data) {
return _data->name.is_empty();
}
return true;
}
StringName &StringName::operator=(const StringName &p_name) {
if (this == &p_name) {
return *this;