diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-03-08 21:23:29 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-03-08 21:23:29 +0000 |
| commit | df0f7b46893b9c87d33df246b7012d4058a79eab (patch) | |
| tree | 7e8f8c6db3dfebe1fc4d1a36ee424a58f843f1bf /src/buffer.cc | |
| parent | f2fd2b125aceb992548c817f9563805401a4436a (diff) | |
rename BufferString to String
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index d62d2e82..d4a5b882 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -23,7 +23,7 @@ T clamp(T min, T max, T val) } Buffer::Buffer(const std::string& name, Type type, - const BufferString& initial_content) + const String& initial_content) : m_name(name), m_type(type), m_history(1), m_history_cursor(m_history.begin()), m_content(initial_content), m_last_save_undo_index(0) @@ -122,7 +122,7 @@ BufferSize Buffer::line_count() const return m_lines.size(); } -BufferString Buffer::string(const BufferIterator& begin, const BufferIterator& end) const +String Buffer::string(const BufferIterator& begin, const BufferIterator& end) const { return m_content.substr(begin.m_position, end - begin); } |
