diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-09-02 18:35:22 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-09-02 18:35:22 +0000 |
| commit | 39f12a17666d54881ee8b0493702cb7a740e24b7 (patch) | |
| tree | 0e07b9c332f40e3c616fbc569e89c4d14578e12e /src/buffer.cc | |
| parent | 19123186d739abe84fe49d590cc1b4db6635eead (diff) | |
add const BufferIterator::Buffer& buffer() method
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 1e20b2d6..f6409cbb 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -19,6 +19,12 @@ BufferIterator::BufferIterator(const Buffer& buffer, BufferPos position) : m_buf { } +const Buffer& BufferIterator::buffer() const +{ + assert(m_buffer); + return *m_buffer; +} + BufferIterator& BufferIterator::operator=(const BufferIterator& iterator) { m_buffer == iterator.m_buffer; |
