Window,Buffer: add const overload for {option,hook}_manager
This commit is contained in:
parent
a30b3e1343
commit
e5c46d7c45
|
@ -178,8 +178,10 @@ 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; }
|
||||||
HookManager& hook_manager() { return m_hook_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 BufferIterator;
|
friend class BufferIterator;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user