1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-21 02:21:32 +03:00

Window,Buffer: add const overload for {option,hook}_manager

This commit is contained in:
Maxime Coste 2012-08-10 14:21:01 +02:00
parent a30b3e1343
commit e5c46d7c45
2 changed files with 9 additions and 4 deletions

View File

@ -178,8 +178,10 @@ public:
const String& line_content(size_t l) const { return m_lines[l].content; }
OptionManager& option_manager() { return m_option_manager; }
HookManager& hook_manager() { return m_hook_manager; }
OptionManager& option_manager() { return m_option_manager; }
const OptionManager& option_manager() const { return m_option_manager; }
HookManager& hook_manager() { return m_hook_manager; }
const HookManager& hook_manager() const { return m_hook_manager; }
private:
friend class BufferIterator;

View File

@ -36,8 +36,11 @@ public:
HighlighterGroup& highlighters() { return m_highlighters; }
HookManager& hook_manager() { return m_hook_manager; }
OptionManager& option_manager() { return m_option_manager; }
OptionManager& option_manager() { return m_option_manager; }
const OptionManager& option_manager() const { return m_option_manager; }
HookManager& hook_manager() { return m_hook_manager; }
const HookManager& hook_manager() const { return m_hook_manager; }
private:
friend class Buffer;