mirror of
https://github.com/godotengine/godot.git
synced 2026-01-08 00:25:01 +03:00
Simplify StringName to bool conversions.
Move `mutex` include of `string_name.h` to `string_name.cpp`.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user