diff --git a/src/lte/helper/lena-helper.cc b/src/lte/helper/lena-helper.cc index 2af66692d..e4fc117df 100644 --- a/src/lte/helper/lena-helper.cc +++ b/src/lte/helper/lena-helper.cc @@ -49,9 +49,9 @@ namespace ns3 { LenaHelper::LenaHelper (void) - : m_downlinkChannel (CreateObject ()), - m_uplinkChannel (CreateObject ()) { + m_downlinkChannel = CreateObject (); + m_uplinkChannel = CreateObject (); Ptr model = CreateObject (); m_downlinkChannel->AddSpectrumPropagationLossModel (model); diff --git a/src/lte/model/lte-interference.h b/src/lte/model/lte-interference.h index e376a3ad9..0dddde473 100644 --- a/src/lte/model/lte-interference.h +++ b/src/lte/model/lte-interference.h @@ -47,7 +47,7 @@ class LteInterference : public Object { public: LteInterference (); - ~LteInterference (); + virtual ~LteInterference (); // inherited from Object static TypeId GetTypeId (void); diff --git a/src/lte/model/lte-phy.cc b/src/lte/model/lte-phy.cc index 89201af86..89360a85d 100644 --- a/src/lte/model/lte-phy.cc +++ b/src/lte/model/lte-phy.cc @@ -48,6 +48,7 @@ LtePhy::LtePhy () m_rbgSize (0), m_macChTtiDelay (1) // 1 TTI delay between MAC and CH { + NS_LOG_FUNCTION (this); for (int i = 0; i < m_macChTtiDelay; i++) { Ptr pb = CreateObject (); @@ -73,6 +74,7 @@ LtePhy::GetTypeId (void) LtePhy::~LtePhy () { + NS_LOG_FUNCTION (this); } void