summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-05-23 14:17:25 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-05-30 13:59:38 +0200
commit7f17644a6bfcaee2fd6c5a013da70d7c018dced3 (patch)
tree606b0e33668bbdb8dc394d6bd93b5a56a090bad7 /src/buffer.hh
parent2902cc32757b53081bef759f267c0df2b1a7b813 (diff)
Buffer insert and erase takes coord rather than iterators
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index 612bf299..4b8a3f43 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -112,8 +112,8 @@ public:
bool set_name(String name);
- void insert(BufferIterator pos, String content);
- void erase(BufferIterator begin, BufferIterator end);
+ void insert(BufferCoord pos, String content);
+ void erase(BufferCoord begin, BufferCoord end);
size_t timestamp() const { return m_timestamp; }
@@ -123,10 +123,6 @@ public:
String string(const BufferCoord& begin,
const BufferCoord& end) const;
- String string(const BufferIterator& begin,
- const BufferIterator& end) const
- { return string(begin.coord(), end.coord()); }
-
ByteCount offset(const BufferCoord& c) const;
ByteCount distance(const BufferCoord& begin, const BufferCoord& end) const;
BufferCoord advance(BufferCoord coord, ByteCount count) const;