diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-10-08 14:28:38 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-10-08 14:28:38 +0200 |
| commit | 5602bc10e879e166af49ed9255bb5742f9390a2d (patch) | |
| tree | 5f1be83dc1aaeaf762a7028e185c59507eba7bdb /src/display_buffer.hh | |
| parent | 7e046e3f0b02e9f70d436a7fd029280fef3face8 (diff) | |
DisplayAtom: only let DisplayLine touch m_begin and m_end
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 2b3fcc0e..e1f1442f 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -32,6 +32,8 @@ enum Attributes Bold = 8 }; +class DisplayLine; + struct AtomContent { public: @@ -69,13 +71,13 @@ public: } } - BufferIterator& begin() + const BufferIterator& begin() const { assert(has_buffer_range()); return m_begin; } - BufferIterator& end() + const BufferIterator& end() const { assert(has_buffer_range()); return m_end; @@ -96,6 +98,8 @@ public: Type type() const { return m_type; } private: + friend class DisplayLine; + Type m_type; BufferIterator m_begin; |
