1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-13 19:50:34 +00:00

Prefer initialization to assignment in constructors

This commit is contained in:
Carles Fernandez 2021-12-14 17:36:12 +01:00
parent 7fa437232a
commit 2f04da621d
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 4 additions and 4 deletions

View File

@ -28,9 +28,9 @@ ArraySignalConditioner::ArraySignalConditioner(std::shared_ptr<GNSSBlockInterfac
std::string role) : data_type_adapt_(std::move(data_type_adapt)), std::string role) : data_type_adapt_(std::move(data_type_adapt)),
in_filt_(std::move(in_filt)), in_filt_(std::move(in_filt)),
res_(std::move(res)), res_(std::move(res)),
role_(std::move(role)) role_(std::move(role)),
connected_(false)
{ {
connected_ = false;
} }

View File

@ -28,9 +28,9 @@ SignalConditioner::SignalConditioner(std::shared_ptr<GNSSBlockInterface> data_ty
std::string role) : data_type_adapt_(std::move(data_type_adapt)), std::string role) : data_type_adapt_(std::move(data_type_adapt)),
in_filt_(std::move(in_filt)), in_filt_(std::move(in_filt)),
res_(std::move(res)), res_(std::move(res)),
role_(std::move(role)) role_(std::move(role)),
connected_(false)
{ {
connected_ = false;
} }