summaryrefslogtreecommitdiff
path: root/src/shell_manager.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell_manager.hh')
-rw-r--r--src/shell_manager.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shell_manager.hh b/src/shell_manager.hh
index a6fe38fd..742ba1cd 100644
--- a/src/shell_manager.hh
+++ b/src/shell_manager.hh
@@ -9,23 +9,23 @@ namespace Kakoune
{
class Context;
-using EnvVarRetriever = std::function<String (const String& name, const Context&)>;
+using EnvVarRetriever = std::function<String (StringView name, const Context&)>;
class ShellManager : public Singleton<ShellManager>
{
public:
ShellManager();
- String eval(const String& cmdline, const Context& context,
+ String eval(StringView cmdline, const Context& context,
memoryview<String> params,
const EnvVarMap& env_vars);
- String pipe(const String& input,
- const String& cmdline, const Context& context,
+ String pipe(StringView input,
+ StringView cmdline, const Context& context,
memoryview<String> params,
const EnvVarMap& env_vars);
- void register_env_var(const String& regex, EnvVarRetriever retriever);
+ void register_env_var(StringView regex, EnvVarRetriever retriever);
private:
std::vector<std::pair<Regex, EnvVarRetriever>> m_env_vars;