diff --git a/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.cc b/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.cc index e88b9cb2c..3da46865f 100644 --- a/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.cc +++ b/src/algorithms/telemetry_decoder/gnuradio_blocks/sbas_l1_telemetry_decoder_gs.cc @@ -202,8 +202,8 @@ bool sbas_l1_telemetry_decoder_gs::Symbol_Aligner_And_Decoder::get_bits(const st const int32_t nbits_requested = symbols.size() / D_SYMBOLS_PER_BIT; int32_t nbits_decoded; // fill two vectors with the two possible symbol alignments - const std::vector symbols_vd1(symbols); // aligned symbol vector -> copy input symbol vector - std::vector symbols_vd2; // shifted symbol vector -> add past sample in front of input vector + const std::vector &symbols_vd1(symbols); // aligned symbol vector -> copy input symbol vector + std::vector symbols_vd2; // shifted symbol vector -> add past sample in front of input vector symbols_vd2.push_back(d_past_symbol); for (auto symbol_it = symbols.cbegin(); symbol_it != symbols.cend() - 1; ++symbol_it) { diff --git a/src/core/system_parameters/galileo_has_data.cc b/src/core/system_parameters/galileo_has_data.cc index 0cdc3456b..566f59757 100644 --- a/src/core/system_parameters/galileo_has_data.cc +++ b/src/core/system_parameters/galileo_has_data.cc @@ -392,7 +392,7 @@ std::vector Galileo_HAS_data::get_delta_clock_subset_correction_m(uint8_t } auto subset_corr_matrix = this->get_delta_clock_subset_correction_m(); - const std::vector delta_clock_subset_correction_m_v = subset_corr_matrix[nsys_sub_index]; + const std::vector& delta_clock_subset_correction_m_v = subset_corr_matrix[nsys_sub_index]; std::vector delta_clock_subset_correction_m_aux; std::vector num_satellites_subset = this->get_num_subset_satellites(); uint8_t num_sats_in_this_system_subset = num_satellites_subset[nsys_sub_index];