From 84a9d09fe07499a75d61cc2554cb1c0656d7082a Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Mon, 21 Oct 2024 11:42:08 +0100 Subject: [PATCH] core, lr-wpan, propagation: Remove redundant semicolon --- src/core/model/pair.h | 2 +- src/lr-wpan/model/lr-wpan-mac.cc | 2 +- src/lr-wpan/model/lr-wpan-phy.cc | 4 ++-- src/propagation/model/channel-condition-model.cc | 2 +- .../model/three-gpp-propagation-loss-model.cc | 12 ++++++------ 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/core/model/pair.h b/src/core/model/pair.h index 15a9864ac..7b59da523 100644 --- a/src/core/model/pair.h +++ b/src/core/model/pair.h @@ -73,7 +73,7 @@ class PairValue : public AttributeValue PairValue(const result_type& value) { Set(value); - }; // "import" constructor + } // "import" constructor // Inherited Ptr Copy() const override; diff --git a/src/lr-wpan/model/lr-wpan-mac.cc b/src/lr-wpan/model/lr-wpan-mac.cc index cfc41f32b..58e20d94a 100644 --- a/src/lr-wpan/model/lr-wpan-mac.cc +++ b/src/lr-wpan/model/lr-wpan-mac.cc @@ -76,7 +76,7 @@ operator<<(std::ostream& os, const MacState& state) break; } return os; -}; +} TypeId LrWpanMac::GetTypeId() diff --git a/src/lr-wpan/model/lr-wpan-phy.cc b/src/lr-wpan/model/lr-wpan-phy.cc index 8498abacc..faef8e9ca 100644 --- a/src/lr-wpan/model/lr-wpan-phy.cc +++ b/src/lr-wpan/model/lr-wpan-phy.cc @@ -123,14 +123,14 @@ operator<<(std::ostream& os, const PhyEnumeration& state) break; } return os; -}; +} std::ostream& operator<<(std::ostream& os, const TracedValue& state) { PhyEnumeration s = state; return os << s; -}; +} TypeId LrWpanPhy::GetTypeId() diff --git a/src/propagation/model/channel-condition-model.cc b/src/propagation/model/channel-condition-model.cc index f7f4a0171..87ec64065 100644 --- a/src/propagation/model/channel-condition-model.cc +++ b/src/propagation/model/channel-condition-model.cc @@ -593,7 +593,7 @@ ThreeGppChannelConditionModel::GetQuantizedElevationAngle(Ptr a, double hBs = std::max(aPos.z, bPos.z); double hUt = std::min(aPos.z, bPos.z); return std::make_tuple(distance2D, distance3D, hBs, hUt); -}; +} /** * @brief Get the base station and user terminal heights for the UmiStreetCanyon scenario @@ -156,7 +156,7 @@ GetBsUtHeightsUmiStreetCanyon(double heightA, double heightB) double hBs = (heightA == 10) ? heightA : heightB; double hUt = (heightA == 10) ? heightB : heightA; return std::make_tuple(hBs, hUt); -}; +} /** * @brief Computes the free-space path loss using the formula described in 3GPP TR 38.811, @@ -171,7 +171,7 @@ double ComputeNtnPathloss(double freq, double dist3d) { return 32.45 + 20 * log10(freq / 1e9) + 20 * log10(dist3d); -}; +} /** * @brief Computes the atmospheric absorption loss using the formula described in 3GPP TR 38.811, @@ -193,7 +193,7 @@ ComputeAtmosphericAbsorptionLoss(double freq, double elevAngle) } return loss; -}; +} /** * @brief Computes the ionospheric plus tropospheric scintillation loss using the formulas @@ -219,7 +219,7 @@ ComputeIonosphericPlusTroposphericScintillationLoss(double freq, double elevAngl loss = troposphericScintillationLoss.at(elevAngleQuantized); } return loss; -}; +} /** * @brief Computes the clutter loss using the formula @@ -250,7 +250,7 @@ ComputeClutterLoss(double freq, } return loss; -}; +} constexpr double M_C = 3.0e8; //!< propagation velocity in free space