From 3f51feaaef05a8c3a70bfb81c483f1ff7add396c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 6 Sep 2011 18:33:18 +0000 Subject: Buffer: accept initial content in constructor --- src/buffer.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buffer.hh') diff --git a/src/buffer.hh b/src/buffer.hh index 66136f82..f1441747 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -65,7 +65,8 @@ private: class Buffer { public: - Buffer(const std::string& name); + Buffer(const std::string& name, + const BufferString& initial_content = ""); void erase(const BufferIterator& begin, const BufferIterator& end); @@ -78,7 +79,6 @@ public: BufferIterator begin() const; BufferIterator end() const; - BufferSize length() const; BufferIterator iterator_at(const BufferCoord& line_and_column) const; -- cgit v1.2.3