diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-11-01 19:31:13 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-11-01 19:31:13 +0000 |
| commit | c04dfc7bb7ea01404c9475c47e710fe12256f17e (patch) | |
| tree | d27b6fdf1a1818b791f0a5cbe431fbec7965299a /src/input_handler.hh | |
| parent | 9a2822e329c7ae448d82734078e38df4ac757655 (diff) | |
move more parameters from const String& to StringView
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 4 |
1 files changed, 2 insertions, 2 deletions
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<void (const String&, PromptEvent, Context&)>; +using PromptCallback = std::function<void (StringView, PromptEvent, Context&)>; using KeyCallback = std::function<void (Key, Context&)>; 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); |
