obj_hashtable: Constify

This commit is contained in:
Nicolas Braud-Santoni
2017-08-22 17:03:20 +00:00
parent 26afdd92c9
commit cb87d47f08
+2 -2
View File
@@ -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;