replace static const Interface iid; with static InterfaceId iid (void);
This commit is contained in:
@@ -27,9 +27,8 @@ NS_LOG_COMPONENT_DEFINE ("Queue");
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
const InterfaceId Queue::iid = MakeInterfaceId ("Queue", Object::iid);
|
||||
static ClassIdDefaultValue g_classIdDefaultValue ("Queue", "Packet Queue",
|
||||
Queue::iid, "DropTailQueue");
|
||||
Queue::iid (), "DropTailQueue");
|
||||
|
||||
|
||||
std::string
|
||||
@@ -97,6 +96,13 @@ QueueTraceType::Print (std::ostream &os) const
|
||||
}
|
||||
}
|
||||
|
||||
InterfaceId
|
||||
Queue::iid (void)
|
||||
{
|
||||
static InterfaceId iid = MakeInterfaceId ("Queue", Object::iid ());
|
||||
return iid;
|
||||
}
|
||||
|
||||
Queue::Queue() :
|
||||
m_nBytes(0),
|
||||
m_nTotalReceivedBytes(0),
|
||||
@@ -275,7 +281,7 @@ Queue::CreateDefault (void)
|
||||
{
|
||||
NS_LOG_FUNCTION;
|
||||
ClassId classId = g_classIdDefaultValue.GetValue ();
|
||||
Ptr<Queue> queue = ComponentManager::Create<Queue> (classId, Queue::iid);
|
||||
Ptr<Queue> queue = ComponentManager::Create<Queue> (classId);
|
||||
return queue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user