do not attempt to access the AttributeList as a fallback from GlobalValue.

This commit is contained in:
Mathieu Lacage
2008-02-25 22:07:19 +01:00
parent 702a31b06e
commit 4e598bde94

View File

@@ -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<const AttributeChecker> checker)
Attribute initialValue,
Ptr<const AttributeChecker> 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)