convert more code to use Ptr<Node> instead of Node *

This commit is contained in:
Mathieu Lacage
2007-05-10 07:35:53 +02:00
parent b67d398976
commit 5bd6229ac1
4 changed files with 12 additions and 18 deletions

View File

@@ -27,16 +27,12 @@
namespace ns3 {
Ipv4LoopbackInterface::Ipv4LoopbackInterface (Node *node)
Ipv4LoopbackInterface::Ipv4LoopbackInterface (Ptr<Node> node)
: Ipv4Interface (0),
m_node (node)
{
m_node->Ref ();
}
{}
Ipv4LoopbackInterface::~Ipv4LoopbackInterface ()
{
m_node->Unref ();
}
{}
TraceResolver *
Ipv4LoopbackInterface::DoCreateTraceResolver (TraceContext const &context)