Commit ee99c415 authored by Andy Maloney's avatar Andy Maloney Committed by Jesse Beder
Browse files

Fix a warning from -Wshadow (#627)

Variable "it" was shadowed
parent d0da1440
...@@ -172,9 +172,9 @@ inline bool node_data::remove(const Key& key, shared_memory_holder pMemory) { ...@@ -172,9 +172,9 @@ inline bool node_data::remove(const Key& key, shared_memory_holder pMemory) {
it = jt; it = jt;
} }
for (node_map::iterator it = m_map.begin(); it != m_map.end(); ++it) { for (node_map::iterator iter = m_map.begin(); iter != m_map.end(); ++iter) {
if (it->first->equals(key, pMemory)) { if (iter->first->equals(key, pMemory)) {
m_map.erase(it); m_map.erase(iter);
return true; return true;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment