diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-03-09 13:48:41 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-03-09 13:54:09 +0000 |
| commit | 1cec8df45e297a8136df6f293d4874ae6c6cb013 (patch) | |
| tree | 7d713ba554765093238c924bcc9a6eaf7bf240ec /src/user_interface.hh | |
| parent | 44f81d0b8b73367369de6be0757247a62876d4c1 (diff) | |
ArrayView content is not const anymore
As in upcoming std c++ array_view, ArrayView<T> points to mutable
data, use ArrayView<const T> or alias ConstArrayView<T> for const
data.
Diffstat (limited to 'src/user_interface.hh')
| -rw-r--r-- | src/user_interface.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user_interface.hh b/src/user_interface.hh index 6734bf14..92aae13e 100644 --- a/src/user_interface.hh +++ b/src/user_interface.hh @@ -1,6 +1,7 @@ #ifndef user_interface_hh_INCLUDED #define user_interface_hh_INCLUDED +#include "array_view.hh" #include "safe_ptr.hh" #include "unordered_map.hh" @@ -15,7 +16,6 @@ class DisplayLine; struct CharCoord; struct Face; struct Key; -template<typename T> class ArrayView; enum class MenuStyle { @@ -41,7 +41,7 @@ class UserInterface : public SafeCountable public: virtual ~UserInterface() {} - virtual void menu_show(ArrayView<String> choices, + virtual void menu_show(ConstArrayView<String> choices, CharCoord anchor, Face fg, Face bg, MenuStyle style) = 0; virtual void menu_select(int selected) = 0; |
