--- a/src/lte/model/a2-a4-rsrq-handover-algorithm.cc Thu Oct 17 17:33:30 2013 +0300
+++ b/src/lte/model/a2-a4-rsrq-handover-algorithm.cc Thu Oct 17 18:46:50 2013 +0300
@@ -275,7 +275,7 @@
else
{
// insert a new cell entry
- neighbourCellMeasures = CreateObject<UeMeasure> ();
+ neighbourCellMeasures = Create<UeMeasure> ();
neighbourCellMeasures->m_cellId = cellId;
neighbourCellMeasures->m_rsrp = 0;
neighbourCellMeasures->m_rsrq = rsrq;
--- a/src/lte/model/a2-a4-rsrq-handover-algorithm.h Thu Oct 17 17:33:30 2013 +0300
+++ b/src/lte/model/a2-a4-rsrq-handover-algorithm.h Thu Oct 17 18:46:50 2013 +0300
@@ -31,6 +31,8 @@
#include <ns3/lte-handover-algorithm.h>
#include <ns3/lte-handover-management-sap.h>
#include <ns3/lte-rrc-sap.h>
+#include <ns3/simple-ref-count.h>
+#include <ns3/ptr.h>
#include <map>
namespace ns3 {
@@ -118,10 +120,8 @@
* \brief Measurements reported by a UE for a cell ID.
*
* The values are quantized according 3GPP TS 36.133 section 9.1.4 and 9.1.7.
- *
- * \todo Instead of class, try using struct or SimpleRefCount.
*/
- class UeMeasure : public Object
+ class UeMeasure : public SimpleRefCount<UeMeasure>
{
public:
uint16_t m_cellId;