From cfd7ee049a7c668bb2269029d159b34d2014ece6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 11 Dec 2012 19:51:59 +0100 Subject: 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. --- src/editor.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/editor.hh') 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 m_buffer; - SelectionList m_selections; - FilterGroup m_filters; + DynamicSelectionList m_selections; + FilterGroup m_filters; }; struct scoped_edition -- cgit v1.2.3