From 34d7bdbc011ed01fa87e3c1933556742b2bab6d5 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 30 Oct 2015 13:07:48 +0000 Subject: [PATCH] Minor code cleanup in insert_completer.cc --- src/insert_completer.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/insert_completer.cc b/src/insert_completer.cc index 08ff5071..808a08a2 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -98,11 +98,10 @@ InsertCompletion complete_word(const Buffer& buffer, ByteCoord cursor_pos) RankedMatchAndBuffer(const RankedMatch& m, const Buffer* b = nullptr) : RankedMatch{m}, buffer{b} {} + using RankedMatch::operator==; + using RankedMatch::operator<; bool operator==(StringView other) const { return candidate() == other; } - bool operator==(const RankedMatchAndBuffer& other) const { return RankedMatch::operator==(other); } - bool operator<(const RankedMatchAndBuffer& other) const { return RankedMatch::operator<(other);; } - const Buffer* buffer; }; Vector matches;