summaryrefslogtreecommitdiffstats
path: root/core/string/string_name.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-21 09:21:32 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-21 09:21:32 +0100
commit4f3ec4121a4e1f45d64750c6b3bf66f1299ca501 (patch)
tree0f234f4b6376d51a031e332f8ed064d607910c30 /core/string/string_name.cpp
parent6b4a01f99ab8978ee115c13b4900a222e7b4e449 (diff)
parent522d4243bfd2fcb5de7597e7829ad3b99df68244 (diff)
downloadredot-engine-4f3ec4121a4e1f45d64750c6b3bf66f1299ca501.tar.gz
Merge pull request #70350 from Chaosus/stringname_operator
Add missing != operator to `StringName`
Diffstat (limited to 'core/string/string_name.cpp')
-rw-r--r--core/string/string_name.cpp4
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