Fixing another coverity issue

This commit is contained in:
Dennis Luxen 2013-09-17 15:27:51 +02:00
parent 7ed3a1df04
commit 5294fc4767

View File

@ -40,7 +40,7 @@ EdgeBasedGraphFactory::EdgeBasedGraphFactory(
if(restriction_iter == m_restriction_map.end()) {
index = m_restriction_bucket_list.size();
m_restriction_bucket_list.resize(index+1);
m_restriction_map[restriction_source] = index;
m_restriction_map.emplace(restriction_source, index);
} else {
index = restriction_iter->second;
//Map already contains an is_only_*-restriction