summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-11-23 19:49:59 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-11-23 19:49:59 +0000
commitdfed7ed211a7372b4c5610ea83aa9a3611bf20be (patch)
tree7e69409d11d5105cb5de39a1307b811d4956b85c /src
parent88def85d77b935af3c869e5ede41ca125a114daf (diff)
const String& to StringView
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.cc b/src/commands.cc
index a6dbd5f7..8b88702b 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -83,7 +83,7 @@ const ParameterDesc single_optional_name_param{
static constexpr auto scopes = { "global", "buffer", "window" };
-Scope* get_scope_ifp(const String& scope, const Context& context)
+Scope* get_scope_ifp(StringView scope, const Context& context)
{
if (prefix_match("global", scope))
return &GlobalScope::instance();
@@ -96,7 +96,7 @@ Scope* get_scope_ifp(const String& scope, const Context& context)
return nullptr;
}
-Scope& get_scope(const String& scope, const Context& context)
+Scope& get_scope(StringView scope, const Context& context)
{
if (auto s = get_scope_ifp(scope, context))
return *s;