diff --git a/src/point-to-point/model/point-to-point-channel.h b/src/point-to-point/model/point-to-point-channel.h index 070fe36b0..4344ea259 100644 --- a/src/point-to-point/model/point-to-point-channel.h +++ b/src/point-to-point/model/point-to-point-channel.h @@ -197,14 +197,9 @@ class PointToPointChannel : public Channel /** \brief Create the link, it will be in INITIALIZING state * */ - Link() - : m_state(INITIALIZING), - m_src(nullptr), - m_dst(nullptr) - { - } + Link() = default; - WireState m_state; //!< State of the link + WireState m_state{INITIALIZING}; //!< State of the link Ptr m_src; //!< First NetDevice Ptr m_dst; //!< Second NetDevice };