View | Details | Raw Unified | Return to bug 2344
Collapse All | Expand All

(-)a/src/core/model/type-id.cc (+6 lines)
 Lines 610-615    Link Here 
610
{
610
{
611
  NS_LOG_FUNCTION (this << uid << name << help << flags << initialValue << accessor << checker);
611
  NS_LOG_FUNCTION (this << uid << name << help << flags << initialValue << accessor << checker);
612
  struct IidInformation *information = LookupInformation (uid);
612
  struct IidInformation *information = LookupInformation (uid);
613
  if (name.find (' ') != std::string::npos)
614
    {
615
      NS_FATAL_ERROR ("Attribute name \"" << name << "\" may not contain spaces ' ', "
616
                      << "encountered when registering TypeId \""
617
                      << information->name << "\"");
618
    }
613
  if (HasAttribute (uid, name))
619
  if (HasAttribute (uid, name))
614
    {
620
    {
615
      NS_FATAL_ERROR ("Attribute \"" << name << "\" already registered on tid=\"" << 
621
      NS_FATAL_ERROR ("Attribute \"" << name << "\" already registered on tid=\"" << 

Return to bug 2344