From 1cec8df45e297a8136df6f293d4874ae6c6cb013 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 9 Mar 2015 13:48:41 +0000 Subject: ArrayView content is not const anymore As in upcoming std c++ array_view, ArrayView points to mutable data, use ArrayView or alias ConstArrayView for const data. --- src/keymap_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/keymap_manager.cc') diff --git a/src/keymap_manager.cc b/src/keymap_manager.cc index 4598c889..42308538 100644 --- a/src/keymap_manager.cc +++ b/src/keymap_manager.cc @@ -23,7 +23,7 @@ bool KeymapManager::is_mapped(Key key, KeymapMode mode) const (m_parent and m_parent->is_mapped(key, mode)); } -ArrayView KeymapManager::get_mapping(Key key, KeymapMode mode) const +ConstArrayView KeymapManager::get_mapping(Key key, KeymapMode mode) const { auto it = m_mapping.find({key, mode}); if (it != m_mapping.end()) -- cgit v1.2.3