From eedd37c09acace58ceadacf8ecf9e883a2fd5a4a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 26 Jul 2013 01:17:12 +0200 Subject: memoryview: always pass by value --- src/input_handler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index 997c6e96..5d6f437a 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -161,7 +161,7 @@ private: class Menu : public InputMode { public: - Menu(InputHandler& input_handler, const memoryview& choices, + Menu(InputHandler& input_handler, memoryview choices, MenuCallback callback) : InputMode(input_handler), m_callback(callback), m_choices(choices.begin(), choices.end()), @@ -269,7 +269,7 @@ private: LineEditor m_filter_editor; }; -String common_prefix(const memoryview& strings) +String common_prefix(memoryview strings) { String res; if (strings.empty()) @@ -879,7 +879,7 @@ void InputHandler::set_prompt_colors(ColorPair prompt_colors) prompt->set_prompt_colors(prompt_colors); } -void InputHandler::menu(const memoryview& choices, +void InputHandler::menu(memoryview choices, MenuCallback callback) { m_mode_trash.emplace_back(std::move(m_mode)); -- cgit v1.2.3