mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 12:10:34 +00:00
update copyright and move risky initializer into ctor body
This commit is contained in:
parent
6d41fc8fb2
commit
c221fd1c87
@ -9,7 +9,7 @@
|
||||
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
||||
* This file is part of GNSS-SDR.
|
||||
*
|
||||
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
||||
* Copyright (C) 2010-2021 (see AUTHORS file for a list of contributors)
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*
|
||||
* -----------------------------------------------------------------------------
|
||||
@ -38,6 +38,9 @@ size_t SignalSourceBase::getRfChannels() const
|
||||
}
|
||||
|
||||
SignalSourceBase::SignalSourceBase(ConfigurationInterface const* configuration, std::string role, std::string impl)
|
||||
: role_(std::move(role)), implementation_(std::move(impl)), rfChannels_(configuration->property(role_ + ".RF_channels"s, 1U))
|
||||
: role_(std::move(role)), implementation_(std::move(impl))
|
||||
{
|
||||
// because clang-tidy insists on using std::move for the string arguments, and to avoid
|
||||
// depending on the order of initialization, assign rfChannels_ in the body
|
||||
rfChannels_ = configuration->property(role_ + ".RF_channels"s, 1U);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user