diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-03-30 18:53:33 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-04-10 13:12:36 +0200 |
commit | 08a901cc0bc13e7d0794a691ed139aa611ccc872 (patch) | |
tree | 7b31f3c653c5b7e8debfdc88fd24222196a3fcb6 /sql/vers_string.h | |
parent | 0dcb47cae93b8b25a1c1bd7ca31e0d2432df89f3 (diff) | |
download | mariadb-git-08a901cc0bc13e7d0794a691ed139aa611ccc872.tar.gz |
cleanup: remove XString::operator== and !=
use named methods instead.
Diffstat (limited to 'sql/vers_string.h')
-rw-r--r-- | sql/vers_string.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sql/vers_string.h b/sql/vers_string.h index 0760613cd89..5460838510e 100644 --- a/sql/vers_string.h +++ b/sql/vers_string.h @@ -103,14 +103,10 @@ public: Storage(_str, strlen(_str), Compare::charset()) { } - bool operator== (const XString& b) const + bool streq(const XString& b) const { return Storage::length() == b.length() && 0 == Compare()(this->lex_cstring(), b.lex_cstring()); } - bool operator!= (const XString& b) const - { - return !(*this == b); - } operator const char* () const { return Storage::ptr(); |