add CreateObject<> to instanciate subclasses of the Object base class. Replaces Create<>.

This commit is contained in:
Mathieu Lacage committed 2008-01-02 09:09:24 +01:00
1 parent 906a9748b5
commit 6b0e717a19
77 files changed
+403 -359

No files matched your search

+1 -2
View File
@@ -106,9 +106,8 @@ Node::Node(uint32_t sid)
void
Node::Construct (void)
{
SetInterfaceId (Node::iid);
m_id = NodeList::Add (this);
Ptr<PacketSocketFactory> socketFactory = Create<PacketSocketFactory> ();
Ptr<PacketSocketFactory> socketFactory = CreateObject<PacketSocketFactory> ();
AddInterface (socketFactory);
}