mtp: Fix deprecation usage since ns-3.37
This commit is contained in:
@@ -87,7 +87,7 @@ LogicalProcess::CalculateLookAhead()
|
||||
continue;
|
||||
}
|
||||
Ptr<Channel> channel = localNetDevice->GetChannel();
|
||||
if (channel == 0)
|
||||
if (!channel)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -287,7 +287,7 @@ void
|
||||
LogicalProcess::SetScheduler(ObjectFactory schedulerFactory)
|
||||
{
|
||||
Ptr<Scheduler> scheduler = schedulerFactory.Create<Scheduler>();
|
||||
if (m_events != 0)
|
||||
if (m_events)
|
||||
{
|
||||
while (!m_events->IsEmpty())
|
||||
{
|
||||
|
||||
@@ -293,7 +293,7 @@ MultithreadedSimulatorImpl::Partition()
|
||||
{
|
||||
Ptr<NetDevice> localNetDevice = node->GetDevice(i);
|
||||
Ptr<Channel> channel = localNetDevice->GetChannel();
|
||||
if (channel == 0)
|
||||
if (!channel)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -344,7 +344,7 @@ MultithreadedSimulatorImpl::Partition()
|
||||
{
|
||||
Ptr<NetDevice> localNetDevice = node->GetDevice(i);
|
||||
Ptr<Channel> channel = localNetDevice->GetChannel();
|
||||
if (channel == 0)
|
||||
if (!channel)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user