Add missing != operator to StringName
This commit is contained in:
parent
2a04b18d37
commit
522d4243bf
4 changed files with 7 additions and 2 deletions
|
|
@ -169,6 +169,10 @@ bool StringName::operator!=(const String &p_name) const {
|
|||
return !(operator==(p_name));
|
||||
}
|
||||
|
||||
bool StringName::operator!=(const char *p_name) const {
|
||||
return !(operator==(p_name));
|
||||
}
|
||||
|
||||
bool StringName::operator!=(const StringName &p_name) const {
|
||||
// the real magic of all this mess happens here.
|
||||
// this is why path comparisons are very fast
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@ public:
|
|||
bool operator==(const String &p_name) const;
|
||||
bool operator==(const char *p_name) const;
|
||||
bool operator!=(const String &p_name) const;
|
||||
bool operator!=(const char *p_name) const;
|
||||
|
||||
_FORCE_INLINE_ bool is_node_unique_name() const {
|
||||
if (!_data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue