diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-01-12 13:58:41 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-01-12 13:58:41 +0000 |
| commit | da562e03a0126adf60d84682f5892b1f610a6ba5 (patch) | |
| tree | e938413b8f25f70562f93c60e7afe95ee82c473c /src/buffer.cc | |
| parent | 83d0813b0ffc8f329a214b533467c761d734e0c1 (diff) | |
replace all std::vector with Vector
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 71cae3de..a87c48de 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -15,7 +15,7 @@ namespace Kakoune { -Buffer::Buffer(String name, Flags flags, std::vector<String> lines, +Buffer::Buffer(String name, Flags flags, Vector<String> lines, time_t fs_timestamp) : Scope(GlobalScope::instance()), m_name(flags & Flags::File ? real_path(parse_filename(name)) : std::move(name)), @@ -157,7 +157,7 @@ struct Buffer::Modification } }; -void Buffer::reload(std::vector<String> lines, time_t fs_timestamp) +void Buffer::reload(Vector<String> lines, time_t fs_timestamp) { m_changes.push_back({ Change::Erase, {0,0}, back_coord(), true }); @@ -284,7 +284,7 @@ ByteCoord Buffer::do_insert(ByteCoord pos, StringView content) StringView prefix = m_lines[pos.line].substr(0, pos.column); StringView suffix = m_lines[pos.line].substr(pos.column); - std::vector<InternedString> new_lines; + Vector<InternedString> new_lines; ByteCount start = 0; for (ByteCount i = 0; i < content.length(); ++i) |
