diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-07-26 01:17:12 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-07-26 01:50:36 +0200 |
| commit | eedd37c09acace58ceadacf8ecf9e883a2fd5a4a (patch) | |
| tree | ab3123463bd9b54ef61d74012abc49313572331b /src/remote.cc | |
| parent | 3862b5cbb8faf1514ed8a8fc413669414e7c614d (diff) | |
memoryview: always pass by value
Diffstat (limited to 'src/remote.cc')
| -rw-r--r-- | src/remote.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remote.cc b/src/remote.cc index 5fe996d6..3e0f8a56 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -62,7 +62,7 @@ public: }; template<typename T> - void write(const memoryview<T>& view) + void write(memoryview<T> view) { write<uint32_t>(view.size()); for (auto& val : view) @@ -213,7 +213,7 @@ public: void print_status(const DisplayLine& status) override; - void menu_show(const memoryview<String>& choices, + void menu_show(memoryview<String> choices, DisplayCoord anchor, ColorPair fg, ColorPair bg, MenuStyle style) override; void menu_select(int selected) override; @@ -258,7 +258,7 @@ void RemoteUI::print_status(const DisplayLine& status) msg.write(status); } -void RemoteUI::menu_show(const memoryview<String>& choices, +void RemoteUI::menu_show(memoryview<String> choices, DisplayCoord anchor, ColorPair fg, ColorPair bg, MenuStyle style) { |
