diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-09-12 10:51:16 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-09-12 10:51:16 +0100 |
| commit | 5173dad47089d37c0fa57a2ef32ce4df9c3e5556 (patch) | |
| tree | b2ef0a0ca43ff71477b919bfbbf62a0c2e4a7e01 /src | |
| parent | 8aca7622bfe69f71997bdfb712609217982504d3 (diff) | |
Add some missing memory domains
Diffstat (limited to 'src')
| -rw-r--r-- | src/display_buffer.hh | 4 | ||||
| -rw-r--r-- | src/file.cc | 2 | ||||
| -rw-r--r-- | src/ncurses_ui.cc | 2 | ||||
| -rw-r--r-- | src/selection.hh | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 8e543284..97b717b1 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -92,7 +92,7 @@ private: String m_text; }; -using AtomList = Vector<DisplayAtom>; +using AtomList = Vector<DisplayAtom, MemoryDomain::Display>; class DisplayLine : public UseMemoryDomain<MemoryDomain::Display> { @@ -143,7 +143,7 @@ private: class DisplayBuffer : public UseMemoryDomain<MemoryDomain::Display> { public: - using LineList = Vector<DisplayLine>; + using LineList = Vector<DisplayLine, MemoryDomain::Display>; DisplayBuffer() {} LineList& lines() { return m_lines; } diff --git a/src/file.cc b/src/file.cc index 516a86c3..65d01912 100644 --- a/src/file.cc +++ b/src/file.cc @@ -418,7 +418,7 @@ Vector<String> complete_command(StringView prefix, ByteCount cursor_pos) TimeSpec mtime = {}; Vector<String> commands; }; - static UnorderedMap<String, CommandCache> command_cache; + static UnorderedMap<String, CommandCache, MemoryDomain::Commands> command_cache; Vector<String> res; for (auto dir : split(getenv("PATH"), ':')) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 75b9c922..8c402fab 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -204,7 +204,7 @@ static int nc_color(Color color) static int get_color_pair(const Face& face) { using ColorPair = std::pair<Color, Color>; - static UnorderedMap<ColorPair, int> colorpairs; + static UnorderedMap<ColorPair, int, MemoryDomain::Faces> colorpairs; static int next_pair = 1; ColorPair colors{face.fg, face.bg}; diff --git a/src/selection.hh b/src/selection.hh index 2f41b06e..26a7865c 100644 --- a/src/selection.hh +++ b/src/selection.hh @@ -6,7 +6,7 @@ namespace Kakoune { -using CaptureList = Vector<String>; +using CaptureList = Vector<String, MemoryDomain::Selections>; // A selection is a Selection, associated with a CaptureList struct Selection |
