diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-05-12 23:25:15 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-05-13 20:09:06 +0100 |
| commit | ea3e92aa5e68e73fa95196332b739891bbf3f24f (patch) | |
| tree | 1b91673cdbec34a9dcb592858890fc6db1255ff9 /src/dynamic_selection_list.hh | |
| parent | 7bc73b7ef9402f81a6bb496b03ba84197f76e642 (diff) | |
SelectionList know its buffer and timestamp
Diffstat (limited to 'src/dynamic_selection_list.hh')
| -rw-r--r-- | src/dynamic_selection_list.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dynamic_selection_list.hh b/src/dynamic_selection_list.hh index 2f408907..65f37915 100644 --- a/src/dynamic_selection_list.hh +++ b/src/dynamic_selection_list.hh @@ -13,10 +13,11 @@ public: using iterator = SelectionList::iterator; using const_iterator = SelectionList::const_iterator; - DynamicSelectionList(Buffer& buffer, SelectionList selections = { Selection{} }); + DynamicSelectionList(SelectionList selections); DynamicSelectionList& operator=(SelectionList selections); - void check_invariant() const; + + using SelectionList::buffer; private: void on_insert(const Buffer& buffer, ByteCoord begin, ByteCoord end, bool at_end) override; |
