From cf00a3a733abbf7f1fef609f9d1127a165c73015 Mon Sep 17 00:00:00 2001 From: Tolik Zinovyev Date: Sat, 22 Jun 2024 21:59:49 -0400 Subject: [PATCH] wifi: pass unordered_map by const ref. --- src/wifi/model/wifi-phy-state-helper.cc | 2 +- src/wifi/model/wifi-phy-state-helper.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wifi/model/wifi-phy-state-helper.cc b/src/wifi/model/wifi-phy-state-helper.cc index 061a4a0b2..d30e689ed 100644 --- a/src/wifi/model/wifi-phy-state-helper.cc +++ b/src/wifi/model/wifi-phy-state-helper.cc @@ -320,7 +320,7 @@ WifiPhyStateHelper::LogPreviousIdleAndCcaBusyStates() void WifiPhyStateHelper::SwitchToTx(Time txDuration, - WifiConstPsduMap psdus, + const WifiConstPsduMap& psdus, double txPowerDbm, const WifiTxVector& txVector) { diff --git a/src/wifi/model/wifi-phy-state-helper.h b/src/wifi/model/wifi-phy-state-helper.h index a03ec597d..9a9e3fad4 100644 --- a/src/wifi/model/wifi-phy-state-helper.h +++ b/src/wifi/model/wifi-phy-state-helper.h @@ -186,7 +186,7 @@ class WifiPhyStateHelper : public Object * \param txVector the TX vector for the transmission */ void SwitchToTx(Time txDuration, - WifiConstPsduMap psdus, + const WifiConstPsduMap& psdus, double txPowerDbm, const WifiTxVector& txVector); /**