From 6ca084fdb37b95fc6da979ef741ee913054987f7 Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Thu, 12 Feb 2015 18:12:15 +0100 Subject: [PATCH] cql3: Implement operator== for column_identifier::raw --- cql3/column_identifier.hh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/cql3/column_identifier.hh b/cql3/column_identifier.hh index 6b976afb43..4330232350 100644 --- a/cql3/column_identifier.hh +++ b/cql3/column_identifier.hh @@ -162,16 +162,9 @@ public: return false; } -#if 0 - @Override - public final boolean equals(Object o) - { - if(!(o instanceof ColumnIdentifier.Raw)) - return false; - ColumnIdentifier.Raw that = (ColumnIdentifier.Raw)o; - return text.equals(that.text); + bool operator==(const raw& other) const { + return _text == other._text; } -#endif virtual sstring to_string() const { return _text;