From cb87d47f08281f3e2cefac07d4e4ea80e97e21e9 Mon Sep 17 00:00:00 2001 From: Nicolas Braud-Santoni Date: Tue, 22 Aug 2017 17:03:20 +0000 Subject: [PATCH] obj_hashtable: Constify --- src/util/obj_hashtable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/obj_hashtable.h b/src/util/obj_hashtable.h index 9c3473e3d..189d1e1a0 100644 --- a/src/util/obj_hashtable.h +++ b/src/util/obj_hashtable.h @@ -134,7 +134,7 @@ public: return m_table.end(); } - void insert(Key * k, Value const & v) { + void insert(Key * const k, Value const & v) { m_table.insert(key_data(k, v)); } @@ -150,7 +150,7 @@ public: return m_table.find_core(key_data(k)); } - bool find(Key * k, Value & v) const { + bool find(Key * const k, Value & v) const { obj_map_entry * e = find_core(k); if (e) { v = e->get_data().m_value;