diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-12-11 19:51:59 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-12-13 18:50:27 +0100 |
| commit | cfd7ee049a7c668bb2269029d159b34d2014ece6 (patch) | |
| tree | dc8d3eef1af8318acde758de012db858d4c36e30 /src/editor.hh | |
| parent | e36bc74f431e2f98f049724536da86af9051811d (diff) | |
move selection updating code out of selection, to DynamicSelectionList
this avoids a lot of unnecessary (add|remove)_change_listener as
creating temporary Selections do not call that anymore.
Use can choose between a SelectionList which or a DynamicSelectionList
depending on wethear the buffer will be modified or not during the
selections lifetime.
Diffstat (limited to 'src/editor.hh')
| -rw-r--r-- | src/editor.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/editor.hh b/src/editor.hh index bcd7e027..c1ea19d5 100644 --- a/src/editor.hh +++ b/src/editor.hh @@ -2,7 +2,7 @@ #define editor_hh_INCLUDED #include "buffer.hh" -#include "selection.hh" +#include "dynamic_selection_list.hh" #include "filter.hh" #include "idvaluemap.hh" #include "memoryview.hh" @@ -95,8 +95,8 @@ private: virtual void on_incremental_insertion_end() {} safe_ptr<Buffer> m_buffer; - SelectionList m_selections; - FilterGroup m_filters; + DynamicSelectionList m_selections; + FilterGroup m_filters; }; struct scoped_edition |
