diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-10-30 13:07:48 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-10-30 13:07:48 +0000 |
| commit | 34d7bdbc011ed01fa87e3c1933556742b2bab6d5 (patch) | |
| tree | dfed684c71f7868ed98172b2eaaf75c315e25047 /src/insert_completer.cc | |
| parent | 32b51e2cc3931c32ffb575f57803b53da75a07e6 (diff) | |
Minor code cleanup in insert_completer.cc
Diffstat (limited to 'src/insert_completer.cc')
| -rw-r--r-- | src/insert_completer.cc | 5 |
1 files 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<RankedMatchAndBuffer> matches; |
