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/shell_manager.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/shell_manager.hh')
| -rw-r--r-- | src/shell_manager.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shell_manager.hh b/src/shell_manager.hh index 6206b90c..60b9b13f 100644 --- a/src/shell_manager.hh +++ b/src/shell_manager.hh @@ -1,6 +1,7 @@ #ifndef shell_manager_hh_INCLUDED #define shell_manager_hh_INCLUDED +#include "array_view.hh" #include "regex.hh" #include "utils.hh" #include "env_vars.hh" @@ -9,7 +10,6 @@ namespace Kakoune { class Context; -template<typename T> class ArrayView; class String; class StringView; @@ -21,13 +21,13 @@ public: ShellManager(); String eval(StringView cmdline, const Context& context, - ArrayView<String> params, + ConstArrayView<String> params, const EnvVarMap& env_vars, int* exit_status = nullptr); String pipe(StringView input, StringView cmdline, const Context& context, - ArrayView<String> params, + ConstArrayView<String> params, const EnvVarMap& env_vars, int* exit_status = nullptr); |
