diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-10-07 10:58:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-07 10:58:45 +0200 |
commit | 44d82b3a070b7ed8973d9e8bc6e58da1084fc7d1 (patch) | |
tree | 544ab66de3ef4c6a20f2739decc4e98212c3207a /core/dictionary.cpp | |
parent | c27b2adb10ea7077008d4f8b356e3561d05bad6a (diff) | |
parent | 4f7b33cdcfdcbc11bcc506018dff1b06db3cf3f6 (diff) |
Merge pull request #22752 from aaronfranke/equals-redundant
Remove redundant "== true" and "== false" code
Diffstat (limited to 'core/dictionary.cpp')
-rw-r--r-- | core/dictionary.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/dictionary.cpp b/core/dictionary.cpp index ba32606819..ccbdff3816 100644 --- a/core/dictionary.cpp +++ b/core/dictionary.cpp @@ -145,6 +145,11 @@ bool Dictionary::operator==(const Dictionary &p_dictionary) const { return _p == p_dictionary._p; } +bool Dictionary::operator!=(const Dictionary &p_dictionary) const { + + return _p != p_dictionary._p; +} + void Dictionary::_ref(const Dictionary &p_from) const { //make a copy first (thread safe) |