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

@ -179,7 +179,9 @@ public:
const String& line_content(size_t l) const { return m_lines[l].content; } const String& line_content(size_t l) const { return m_lines[l].content; }
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; } HookManager& hook_manager() { return m_hook_manager; }
const HookManager& hook_manager() const { return m_hook_manager; }
private: private:
friend class BufferIterator; friend class BufferIterator;

View File

@ -36,8 +36,11 @@ public:
HighlighterGroup& highlighters() { return m_highlighters; } 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: private:
friend class Buffer; friend class Buffer;