summaryrefslogtreecommitdiff
path: root/sql/vers_string.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-03-30 18:53:33 +0200
committerSergei Golubchik <serg@mariadb.org>2018-04-10 13:12:36 +0200
commit08a901cc0bc13e7d0794a691ed139aa611ccc872 (patch)
tree7b31f3c653c5b7e8debfdc88fd24222196a3fcb6 /sql/vers_string.h
parent0dcb47cae93b8b25a1c1bd7ca31e0d2432df89f3 (diff)
downloadmariadb-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.h6
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();