diff -r f5f5c7558429 -r 88230da4bb1a src/core/model/object-base.cc --- a/src/core/model/object-base.cc Wed Aug 03 09:42:01 2011 -0400 +++ b/src/core/model/object-base.cc Wed Aug 03 09:42:10 2011 -0400 @@ -66,12 +66,10 @@ NS_LOG_DEBUG ("construct tid="<checker == checker) + if (j->checker == info.checker) { // We have a matching attribute value. - if (DoSet (accessor, checker, *j->value)) + if (DoSet (info.accessor, info.checker, *j->value)) { NS_LOG_DEBUG ("construct \""<< tid.GetName ()<<"::"<< - tid.GetAttributeName (i)<<"\""); + info.name<<"\""); found = true; break; } @@ -98,13 +96,13 @@ for (AttributeList::Attrs::const_iterator j = AttributeList::GetGlobal ()->m_attributes.begin (); j != AttributeList::GetGlobal ()->m_attributes.end (); j++) { - if (j->checker == checker) + if (j->checker == info.checker) { // We have a matching attribute value. - if (DoSet (accessor, checker, *j->value)) + if (DoSet (info.accessor, info.checker, *j->value)) { NS_LOG_DEBUG ("construct \""<< tid.GetName ()<<"::"<< - tid.GetAttributeName (i)<<"\" from global"); + info.name <<"\" from global"); found = true; break; } @@ -132,10 +130,10 @@ std::string value = tmp.substr (equal+1, tmp.size () - equal - 1); if (name == tid.GetAttributeFullName (i)) { - if (DoSet (accessor, checker, StringValue (value))) + if (DoSet (info.accessor, info.checker, StringValue (value))) { NS_LOG_DEBUG ("construct \""<< tid.GetName ()<<"::"<< - tid.GetAttributeName (i)<<"\" from env var"); + info.name <<"\" from env var"); found = true; break; } @@ -149,9 +147,9 @@ if (!found) { // No matching attribute value so we try to set the default value. - DoSet (accessor, checker, *initial); + DoSet (info.accessor, info.checker, *info.initialValue); NS_LOG_DEBUG ("construct \""<< tid.GetName ()<<"::"<< - tid.GetAttributeName (i)<<"\" from initial value."); + info.name <<"\" from initial value."); } } tid = tid.GetParent ();