src: Fib and FaceMap now use map instead of list as their table data structure.
ref: #2781
Change-Id: I93ad23266ee7b79fd5c53b538c30af76565abc4b
diff --git a/src/route/face-map.cpp b/src/route/face-map.cpp
index d8687e5..108040e 100644
--- a/src/route/face-map.cpp
+++ b/src/route/face-map.cpp
@@ -21,7 +21,6 @@
*
**/
#include <iostream>
-#include <list>
#include <utility>
#include "common.hpp"
@@ -36,11 +35,10 @@
FaceMap::writeLog()
{
_LOG_DEBUG("------- Face Map-----------");
- for(std::list<FaceMapEntry>::iterator it = m_table.begin();
- it != m_table.end(); ++it) {
- _LOG_DEBUG("Face Map Entry (FaceUri: " << (*it).getFaceUri() << " Face Id: "
- << (*it).getFaceId() << ")");
+ for (const auto& it : m_table) {
+ _LOG_DEBUG("Face Map Entry (FaceUri: " << (it.second).getFaceUri()
+ << " Face Id: " << (it.second).getFaceId() << ")");
}
}
-} // namespace NLSR
+} // namespace nlsr