From 4e598bde94038ff1e9a834f571e169c9bd0090fc Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Mon, 25 Feb 2008 22:07:19 +0100 Subject: [PATCH] do not attempt to access the AttributeList as a fallback from GlobalValue. --- src/core/global-value.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/core/global-value.cc b/src/core/global-value.cc index b2e27ea86..0b0b0c4c0 100644 --- a/src/core/global-value.cc +++ b/src/core/global-value.cc @@ -1,12 +1,12 @@ #include "global-value.h" #include "fatal-error.h" -#include "object.h" +#include "attribute.h" namespace ns3 { GlobalValue::GlobalValue (std::string name, std::string help, - Attribute initialValue, - Ptr checker) + Attribute initialValue, + Ptr checker) : m_name (name), m_help (help), m_initialValue (initialValue), @@ -61,9 +61,6 @@ GlobalValue::Bind (std::string name, Attribute value) return; } } - // since we did not find a matching GlobalValue, - // we attempt to configure the global parameters list. - AttributeList::GetGlobal ()->Set (name, value); } GlobalValue::Iterator GlobalValue::Begin (void)