summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-10-20 19:18:38 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-10-20 19:18:38 +0100
commitfc4142178f2619a9ba0cac62ce1081590a56ed79 (patch)
tree609531bb234da34c62fb490fddbab2cd16bdda03 /src/input_handler.cc
parent69113e2711e59da42df5658ab18c7d1847d6db12 (diff)
Port more code to StringView instead of const String&
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index e4368e7f..badac088 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -274,12 +274,12 @@ public:
}
}
- void insert(const String& str)
+ void insert(StringView str)
{
insert_from(m_cursor_pos, str);
}
- void insert_from(CharCount start, const String& str)
+ void insert_from(CharCount start, StringView str)
{
kak_assert(start <= m_cursor_pos);
m_line = m_line.substr(0, start) + str
@@ -459,7 +459,7 @@ String common_prefix(memoryview<String> strings)
return res;
}
-void history_push(std::vector<String>& history, const String& entry)
+void history_push(std::vector<String>& history, StringView entry)
{
if(entry.empty())
{