wifi, wimax: Fix modernize-use-emplace warnings (clang-tidy-16)
This commit is contained in:
@@ -458,10 +458,12 @@ CtrlBAckResponseHeader::SetType(BlockAckType type)
|
||||
|
||||
for (auto& bitmapLen : m_baType.m_bitmapLen)
|
||||
{
|
||||
m_baInfo.push_back({.m_aidTidInfo = 0,
|
||||
.m_startingSeq = 0,
|
||||
.m_bitmap = std::vector<uint8_t>(bitmapLen, 0),
|
||||
.m_ra = Mac48Address()});
|
||||
BaInfoInstance baInfoInstance{.m_aidTidInfo = 0,
|
||||
.m_startingSeq = 0,
|
||||
.m_bitmap = std::vector<uint8_t>(bitmapLen, 0),
|
||||
.m_ra = Mac48Address()};
|
||||
|
||||
m_baInfo.emplace_back(baInfoInstance);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ BSSchedulerRtps::AddDownlinkBurst(Ptr<const WimaxConnection> connection,
|
||||
}
|
||||
NS_LOG_INFO(", modulation: " << modulationType << ", DIUC: " << (uint32_t)diuc);
|
||||
|
||||
m_downlinkBursts->push_back(std::make_pair(dlMapIe, burst));
|
||||
m_downlinkBursts->emplace_back(dlMapIe, burst);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -109,7 +109,7 @@ BSSchedulerSimple::AddDownlinkBurst(Ptr<const WimaxConnection> connection,
|
||||
}
|
||||
NS_LOG_INFO(", modulation: " << modulationType << ", DIUC: " << (uint32_t)diuc);
|
||||
|
||||
m_downlinkBursts->push_back(std::make_pair(dlMapIe, burst));
|
||||
m_downlinkBursts->emplace_back(dlMapIe, burst);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user