diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2022-12-20 17:22:44 +0300 |
---|---|---|
committer | Yuri Rubinsky <chaosus89@gmail.com> | 2022-12-20 17:25:54 +0300 |
commit | 522d4243bfd2fcb5de7597e7829ad3b99df68244 (patch) | |
tree | 5592153054571233035140572991dd903e885e9d /core/string/string_name.cpp | |
parent | 2a04b18d37de6c6e621db5a9dfd1cd0da5ccb015 (diff) |
Add missing != operator to `StringName`
Diffstat (limited to 'core/string/string_name.cpp')
-rw-r--r-- | core/string/string_name.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/string/string_name.cpp b/core/string/string_name.cpp index 9c4fc4e1b7..64d49b8b93 100644 --- a/core/string/string_name.cpp +++ b/core/string/string_name.cpp @@ -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 |