1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 20:50:33 +00:00

Use emplace back when possible

This commit is contained in:
Carles Fernandez 2018-12-03 22:22:59 +01:00
parent 578d96159d
commit 5f5f9027b8
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -104,7 +104,7 @@ void signal_generator_c::init()
{
start_phase_rad_.push_back(0);
current_data_bit_int_.push_back(1);
current_data_bits_.push_back(gr_complex(1, 0));
current_data_bits_.emplace_back(1, 0);
ms_counter_.push_back(0);
data_modulation_.push_back((Galileo_E5a_I_SECONDARY_CODE.at(0) == '0' ? 1 : -1));
pilot_modulation_.push_back((Galileo_E5a_Q_SECONDARY_CODE[PRN_[sat]].at(0) == '0' ? 1 : -1));