diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-08-14 14:13:10 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-08-14 14:13:10 +0200 |
| commit | 4e34f777b0001afb995f1840e6f8c049fcb3d4b4 (patch) | |
| tree | 05b5315b618b92393794be940d83306f0ae1b79c /src/buffer.hh | |
| parent | 25899f33cd7d5af504f198975d5241cfefdb99ec (diff) | |
Buffer: stronger invariant, a buffer is never empty and all lines finish by '\n'
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 53523fae..cc20a607 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -111,8 +111,8 @@ public: Type type() const { return m_type; } - void insert(const BufferIterator& pos, const String& content); - void erase(const BufferIterator& begin, const BufferIterator& end); + void insert(BufferIterator pos, const String& content); + void erase(BufferIterator begin, BufferIterator end); void begin_undo_group(); void end_undo_group(); |
