use Ptr<> everywhere Object or NsUnknown are used

This commit is contained in:
Mathieu Lacage committed 2007-05-10 20:19:26 +02:00
1 parent 7102517ca9
commit e70e445975
53 files changed
+379 -518

No files matched your search

+2 -3
View File
@@ -43,9 +43,8 @@ Ipv4LoopbackInterface::DoCreateTraceResolver (TraceContext const &context)
void
Ipv4LoopbackInterface::SendTo (Packet packet, Ipv4Address dest)
{
IIpv4Private *ipv4 = m_node->QueryInterface<IIpv4Private> (IIpv4Private::iid);
ipv4->Receive (packet, PeekDevice ());
ipv4->Unref ();
Ptr<IIpv4Private> ipv4 = m_node->QueryInterface<IIpv4Private> (IIpv4Private::iid);
ipv4->Receive (packet, GetDevice ());
}
}//namespace ns3