1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-13 03:30:33 +00:00

Prefer initialization to assignment in constructors

This commit is contained in:
Carles Fernandez 2021-12-14 17:41:18 +01:00
parent 2f04da621d
commit 31592f7eb3
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -22,21 +22,22 @@
#include <utility> #include <utility>
ChannelFsm::ChannelFsm() ChannelFsm::ChannelFsm()
: queue_(nullptr),
channel_(0U),
state_(0U)
{ {
acq_ = nullptr; acq_ = nullptr;
trk_ = 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; trk_ = nullptr;
channel_ = 0U;
state_ = 0U;
queue_ = nullptr;
} }