From c04dfc7bb7ea01404c9475c47e710fe12256f17e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 1 Nov 2014 19:31:13 +0000 Subject: move more parameters from const String& to StringView --- src/input_handler.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input_handler.hh') diff --git a/src/input_handler.hh b/src/input_handler.hh index 7911f3c6..8039d6cc 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -27,7 +27,7 @@ enum class PromptEvent Abort, Validate }; -using PromptCallback = std::function; +using PromptCallback = std::function; using KeyCallback = std::function; class InputMode; @@ -50,7 +50,7 @@ public: // abort or validation with corresponding PromptEvent value // returns to normal mode after validation if callback does // not change the mode itself - void prompt(const String& prompt, String initstr, + void prompt(StringView prompt, String initstr, Face prompt_face, Completer completer, PromptCallback callback); void set_prompt_face(Face prompt_face); -- cgit v1.2.3