Fixing Coding Style
diff --git a/src/route/nlsr_nhl.cpp b/src/route/nlsr_nhl.cpp
index 953a0b6..ed769c9 100644
--- a/src/route/nlsr_nhl.cpp
+++ b/src/route/nlsr_nhl.cpp
@@ -1,8 +1,10 @@
#include <iostream>
-
+#include "utility/nlsr_logger.hpp"
#include "nlsr_nhl.hpp"
#include "nlsr_nexthop.hpp"
+#define THIS_FILE "nlsr_nhl.cpp"
+
namespace nlsr
{
@@ -38,12 +40,12 @@
void
Nhl::addNextHop(NextHop& nh)
{
- std::list<NextHop >::iterator it = std::find_if( nexthopList.begin(),
- nexthopList.end(),
+ std::list<NextHop >::iterator it = std::find_if( m_nexthopList.begin(),
+ m_nexthopList.end(),
bind(&nexthopCompare, _1, nh));
- if ( it == nexthopList.end() )
+ if ( it == m_nexthopList.end() )
{
- nexthopList.push_back(nh);
+ m_nexthopList.push_back(nh);
}
if ( (*it).getRouteCost() > nh.getRouteCost() )
{
@@ -59,19 +61,19 @@
void
Nhl::removeNextHop(NextHop &nh)
{
- std::list<NextHop >::iterator it = std::find_if( nexthopList.begin(),
- nexthopList.end(),
+ std::list<NextHop >::iterator it = std::find_if( m_nexthopList.begin(),
+ m_nexthopList.end(),
bind(&nexthopRemoveCompare, _1, nh));
- if ( it != nexthopList.end() )
+ if ( it != m_nexthopList.end() )
{
- nexthopList.erase(it);
+ m_nexthopList.erase(it);
}
}
void
- Nhl::sortNhl()
+ Nhl::sort()
{
- nexthopList.sort(nextHopSortingComparator);
+ m_nexthopList.sort(nextHopSortingComparator);
}
ostream&