From 48899c0ba73fc66aab6c8a0989edf42b96fd81ca Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 2 May 2007 14:52:34 +0200 Subject: [PATCH] remove nil macro --- src/node/application-list.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/node/application-list.cc b/src/node/application-list.cc index 2d6ee7527..f3742b14e 100644 --- a/src/node/application-list.cc +++ b/src/node/application-list.cc @@ -24,12 +24,10 @@ #include "application.h" #include "application-list.h" -#define nil 0 - namespace ns3{ ApplicationList::ApplicationList() - : Capability(nil) + : Capability(0) { } @@ -78,11 +76,11 @@ SmartSet::size_type ApplicationList::Count() const Application* ApplicationList::Get(SmartSet::size_type i) const { // Get the i'th application. Note, this is linear time in N - if (m_apps.Empty()) return nil; // List is empty + if (m_apps.Empty()) return 0; // List is empty SmartSet::const_iterator k = m_apps.Begin(); while(i > 0) { - if (k == m_apps.End()) return nil; // Not found + if (k == m_apps.End()) return 0; // Not found --i; ++k; }