diff --git a/src/common/propagation-loss-model-test-suite.cc b/src/common/propagation-loss-model-test-suite.cc index 07577fa74..730884df7 100644 --- a/src/common/propagation-loss-model-test-suite.cc +++ b/src/common/propagation-loss-model-test-suite.cc @@ -368,11 +368,11 @@ MatrixPropagationLossModelTestCase::~MatrixPropagationLossModelTestCase () void MatrixPropagationLossModelTestCase::DoRun (void) { - Ptr n[3]; + Ptr n[3]; Ptr m[3]; for (int i = 0; i < 3; ++i) { - n[i] = CreateObject (); + n[i] = CreateObject (); m[i] = CreateObject (); n[i]->AggregateObject (m[i]); } diff --git a/src/common/propagation-loss-model.cc b/src/common/propagation-loss-model.cc index 5f18f71ba..7af86131f 100644 --- a/src/common/propagation-loss-model.cc +++ b/src/common/propagation-loss-model.cc @@ -747,7 +747,7 @@ MatrixPropagationLossModel::SetDefaultLoss (double loss) } void -MatrixPropagationLossModel::SetLoss (Ptr a, Ptr b, double loss, bool symmetric) +MatrixPropagationLossModel::SetLoss (Ptr a, Ptr b, double loss, bool symmetric) { Ptr ma = a->GetObject (); Ptr mb = b->GetObject (); diff --git a/src/common/propagation-loss-model.h b/src/common/propagation-loss-model.h index b5d390eec..b23733233 100644 --- a/src/common/propagation-loss-model.h +++ b/src/common/propagation-loss-model.h @@ -27,7 +27,6 @@ #include "ns3/object.h" #include "ns3/random-variable.h" -#include "ns3/node.h" #include namespace ns3 { @@ -495,14 +494,15 @@ public: virtual ~MatrixPropagationLossModel (); /** - * \brief Set loss (in dB, positive) between pair of nodes. + * \brief Set loss (in dB, positive) between pair of ns-3 objects + * (typically, nodes). * - * \param a Source node - * \param b Destination node + * \param a Source object + * \param b Destination object * \param loss a -> b path loss, positive in dB * \param symmetric If true (default), both a->b and b->a paths will be affected */ - void SetLoss (Ptr a, Ptr b, double loss, bool symmetric = true); + void SetLoss (Ptr a, Ptr b, double loss, bool symmetric = true); /// Set default loss (in dB, positive) to be used, infinity if not set void SetDefaultLoss (double);