mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-12 19:20:32 +00:00
Prefer initialization to assignment in constructors
This commit is contained in:
parent
2f04da621d
commit
31592f7eb3
@ -22,21 +22,22 @@
|
||||
#include <utility>
|
||||
|
||||
ChannelFsm::ChannelFsm()
|
||||
: queue_(nullptr),
|
||||
channel_(0U),
|
||||
state_(0U)
|
||||
{
|
||||
acq_ = nullptr;
|
||||
trk_ = nullptr;
|
||||
channel_ = 0U;
|
||||
state_ = 0U;
|
||||
queue_ = nullptr;
|
||||
}
|
||||
|
||||
|
||||
ChannelFsm::ChannelFsm(std::shared_ptr<AcquisitionInterface> acquisition) : acq_(std::move(acquisition))
|
||||
ChannelFsm::ChannelFsm(std::shared_ptr<AcquisitionInterface> acquisition)
|
||||
: acq_(std::move(acquisition)),
|
||||
queue_(nullptr),
|
||||
channel_(0U),
|
||||
state_(0U)
|
||||
{
|
||||
trk_ = nullptr;
|
||||
channel_ = 0U;
|
||||
state_ = 0U;
|
||||
queue_ = nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user