summaryrefslogtreecommitdiff
path: root/src/function_group.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-04-18 14:02:14 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-04-18 14:02:14 +0100
commitadde2fef75b12bb9ce536341b87729ab2fc610fe (patch)
tree764dc9d71114d031b6a693b7cc277dd09d6c3e7f /src/function_group.hh
parentaf2d82dfc17ccd0c32b0955b1588e3bca379ccab (diff)
Use StringView for completion functions
Diffstat (limited to 'src/function_group.hh')
-rw-r--r--src/function_group.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/function_group.hh b/src/function_group.hh
index a3371c53..3bac5159 100644
--- a/src/function_group.hh
+++ b/src/function_group.hh
@@ -54,12 +54,12 @@ public:
return *group;
}
- CandidateList complete_id(const String& prefix, ByteCount cursor_pos) const
+ CandidateList complete_id(StringView prefix, ByteCount cursor_pos) const
{
return m_functions.complete_id(prefix, cursor_pos);
}
- CandidateList complete_group_id(const String& prefix, ByteCount cursor_pos) const
+ CandidateList complete_group_id(StringView prefix, ByteCount cursor_pos) const
{
return m_functions.complete_id_if(
prefix, cursor_pos, [](const FunctionAndId& func) {