From 6ecd6ebe529600da4c972ea1b758e0b0bc45ccf5 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Fri, 15 May 2015 11:47:34 +0200 Subject: [PATCH] fixing coverity issues --- .../galileo_e1_pcps_8ms_ambiguous_acquisition.cc | 2 +- .../adapters/galileo_e1_pcps_ambiguous_acquisition.cc | 11 ++++------- .../galileo_e1_pcps_cccwsr_ambiguous_acquisition.cc | 2 +- ...galileo_e1_pcps_quicksync_ambiguous_acquisition.cc | 2 +- .../galileo_e1_pcps_tong_ambiguous_acquisition.cc | 2 +- .../galileo_e5a_noncoherent_iq_acquisition_caf.cc | 8 +++++--- .../adapters/gps_l1_ca_pcps_acquisition.cc | 4 ++-- .../gps_l1_ca_pcps_acquisition_fine_doppler.cc | 4 ++-- .../adapters/gps_l1_ca_pcps_assisted_acquisition.cc | 4 ++-- .../gps_l1_ca_pcps_multithread_acquisition.cc | 4 ++-- .../adapters/gps_l1_ca_pcps_opencl_acquisition.cc | 10 ++++------ .../adapters/gps_l1_ca_pcps_quicksync_acquisition.cc | 2 +- .../adapters/gps_l1_ca_pcps_tong_acquisition.cc | 4 ++-- .../acquisition/adapters/gps_l2_m_pcps_acquisition.cc | 6 +++--- .../galileo_e1_dll_pll_veml_tracking_test.cc | 2 +- ...e1_pcps_8ms_ambiguous_acquisition_gsoc2013_test.cc | 2 +- ...leo_e1_pcps_ambiguous_acquisition_gsoc2013_test.cc | 2 +- ...galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc | 2 +- .../galileo_e1_pcps_ambiguous_acquisition_test.cc | 2 +- ...pcps_cccwsr_ambiguous_acquisition_gsoc2013_test.cc | 2 +- ...s_quicksync_ambiguous_acquisition_gsoc2014_test.cc | 2 +- ...1_pcps_tong_ambiguous_acquisition_gsoc2013_test.cc | 2 +- ...eo_e5a_pcps_acquisition_gsoc2014_gensource_test.cc | 2 +- src/tests/gnss_block/galileo_e5a_tracking_test.cc | 2 +- .../gps_l1_ca_pcps_acquisition_gsoc2013_test.cc | 2 +- .../gnss_block/gps_l1_ca_pcps_acquisition_test.cc | 2 +- ...1_ca_pcps_multithread_acquisition_gsoc2013_test.cc | 2 +- ...gps_l1_ca_pcps_opencl_acquisition_gsoc2013_test.cc | 2 +- ..._l1_ca_pcps_quicksync_acquisition_gsoc2014_test.cc | 2 +- .../gps_l1_ca_pcps_tong_acquisition_gsoc2013_test.cc | 2 +- .../gnss_block/gps_l2_m_dll_pll_tracking_test.cc | 2 +- .../gnss_block/gps_l2_m_pcps_acquisition_test.cc | 2 +- 32 files changed, 49 insertions(+), 52 deletions(-) diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_8ms_ambiguous_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_8ms_ambiguous_acquisition.cc index 314272a01..9c44f2daa 100644 --- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_8ms_ambiguous_acquisition.cc +++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_8ms_ambiguous_acquisition.cc @@ -106,7 +106,7 @@ GalileoE1Pcps8msAmbiguousAcquisition::GalileoE1Pcps8msAmbiguousAcquisition( LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition.cc index 67d706bf1..9aedcac8c 100644 --- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition.cc +++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_ambiguous_acquisition.cc @@ -106,17 +106,14 @@ GalileoE1PcpsAmbiguousAcquisition::GalileoE1PcpsAmbiguousAcquisition( shift_resolution_, if_, fs_in_, samples_per_ms, code_length_, bit_transition_flag_, queue_, dump_, dump_filename_); stream_to_vector_ = gr::blocks::stream_to_vector::make(item_size_, vector_length_); - DLOG(INFO) << "stream_to_vector(" - << stream_to_vector_->unique_id() << ")"; - DLOG(INFO) << "acquisition(" << acquisition_cc_->unique_id() - << ")"; + DLOG(INFO) << "stream_to_vector(" << stream_to_vector_->unique_id() << ")"; + DLOG(INFO) << "acquisition(" << acquisition_cc_->unique_id() << ")"; } else { - LOG(WARNING) << item_type_ - << " unknown acquisition item type"; + LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_cccwsr_ambiguous_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_cccwsr_ambiguous_acquisition.cc index 524f5e472..a565a3cc2 100644 --- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_cccwsr_ambiguous_acquisition.cc +++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_cccwsr_ambiguous_acquisition.cc @@ -106,7 +106,7 @@ GalileoE1PcpsCccwsrAmbiguousAcquisition::GalileoE1PcpsCccwsrAmbiguousAcquisition LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_quicksync_ambiguous_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_quicksync_ambiguous_acquisition.cc index 982063ac3..eec0c0315 100644 --- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_quicksync_ambiguous_acquisition.cc +++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_quicksync_ambiguous_acquisition.cc @@ -140,7 +140,7 @@ GalileoE1PcpsQuickSyncAmbiguousAcquisition::GalileoE1PcpsQuickSyncAmbiguousAcqui LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } diff --git a/src/algorithms/acquisition/adapters/galileo_e1_pcps_tong_ambiguous_acquisition.cc b/src/algorithms/acquisition/adapters/galileo_e1_pcps_tong_ambiguous_acquisition.cc index 7d4609d7b..4c19a39cb 100644 --- a/src/algorithms/acquisition/adapters/galileo_e1_pcps_tong_ambiguous_acquisition.cc +++ b/src/algorithms/acquisition/adapters/galileo_e1_pcps_tong_ambiguous_acquisition.cc @@ -107,7 +107,7 @@ GalileoE1PcpsTongAmbiguousAcquisition::GalileoE1PcpsTongAmbiguousAcquisition( LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } diff --git a/src/algorithms/acquisition/adapters/galileo_e5a_noncoherent_iq_acquisition_caf.cc b/src/algorithms/acquisition/adapters/galileo_e5a_noncoherent_iq_acquisition_caf.cc index 9906bce36..3f2dd197e 100644 --- a/src/algorithms/acquisition/adapters/galileo_e5a_noncoherent_iq_acquisition_caf.cc +++ b/src/algorithms/acquisition/adapters/galileo_e5a_noncoherent_iq_acquisition_caf.cc @@ -114,15 +114,17 @@ GalileoE5aNoncoherentIQAcquisitionCaf::GalileoE5aNoncoherentIQAcquisitionCaf( LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } + GalileoE5aNoncoherentIQAcquisitionCaf::~GalileoE5aNoncoherentIQAcquisitionCaf() { - delete[] codeI_; - delete[] codeQ_; + delete[] codeI_; + delete[] codeQ_; } + void GalileoE5aNoncoherentIQAcquisitionCaf::set_channel(unsigned int channel) { channel_ = channel; diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition.cc index bbebe9a37..8f74affde 100644 --- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition.cc +++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition.cc @@ -121,13 +121,13 @@ GpsL1CaPcpsAcquisition::GpsL1CaPcpsAcquisition( threshold_ = 0.0; doppler_max_ = 0; doppler_step_ = 0; - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } GpsL1CaPcpsAcquisition::~GpsL1CaPcpsAcquisition() { - delete[] code_; + delete[] code_; } diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fine_doppler.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fine_doppler.cc index 597bbcf66..5c63fb862 100644 --- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fine_doppler.cc +++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition_fine_doppler.cc @@ -86,13 +86,13 @@ GpsL1CaPcpsAcquisitionFineDoppler::GpsL1CaPcpsAcquisitionFineDoppler( { LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } GpsL1CaPcpsAcquisitionFineDoppler::~GpsL1CaPcpsAcquisitionFineDoppler() { - delete[] code_; + delete[] code_; } diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_assisted_acquisition.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_assisted_acquisition.cc index dccbb10de..59ae40906 100644 --- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_assisted_acquisition.cc +++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_assisted_acquisition.cc @@ -85,13 +85,13 @@ GpsL1CaPcpsAssistedAcquisition::GpsL1CaPcpsAssistedAcquisition( { LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } GpsL1CaPcpsAssistedAcquisition::~GpsL1CaPcpsAssistedAcquisition() { - delete[] code_; + delete[] code_; } diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_multithread_acquisition.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_multithread_acquisition.cc index 0c549fc16..d2c095a5e 100644 --- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_multithread_acquisition.cc +++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_multithread_acquisition.cc @@ -103,13 +103,13 @@ GpsL1CaPcpsMultithreadAcquisition::GpsL1CaPcpsMultithreadAcquisition( { LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } GpsL1CaPcpsMultithreadAcquisition::~GpsL1CaPcpsMultithreadAcquisition() { - delete[] code_; + delete[] code_; } diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_opencl_acquisition.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_opencl_acquisition.cc index 8172e7fc2..95f52335b 100644 --- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_opencl_acquisition.cc +++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_opencl_acquisition.cc @@ -93,22 +93,20 @@ GpsL1CaPcpsOpenClAcquisition::GpsL1CaPcpsOpenClAcquisition( stream_to_vector_ = gr::blocks::stream_to_vector::make(item_size_, vector_length_); - DLOG(INFO) << "stream_to_vector(" << stream_to_vector_->unique_id() - << ")"; - DLOG(INFO) << "acquisition(" << acquisition_cc_->unique_id() - << ")"; + DLOG(INFO) << "stream_to_vector(" << stream_to_vector_->unique_id() << ")"; + DLOG(INFO) << "acquisition(" << acquisition_cc_->unique_id() << ")"; } else { LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } GpsL1CaPcpsOpenClAcquisition::~GpsL1CaPcpsOpenClAcquisition() { - delete[] code_; + delete[] code_; } diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_quicksync_acquisition.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_quicksync_acquisition.cc index b2ae27845..79af3d528 100644 --- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_quicksync_acquisition.cc +++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_quicksync_acquisition.cc @@ -135,7 +135,7 @@ GpsL1CaPcpsQuickSyncAcquisition::GpsL1CaPcpsQuickSyncAcquisition( LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } diff --git a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_tong_acquisition.cc b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_tong_acquisition.cc index 655b20e4e..219cf87df 100644 --- a/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_tong_acquisition.cc +++ b/src/algorithms/acquisition/adapters/gps_l1_ca_pcps_tong_acquisition.cc @@ -95,13 +95,13 @@ GpsL1CaPcpsTongAcquisition::GpsL1CaPcpsTongAcquisition( { LOG(WARNING) << item_type_ << " unknown acquisition item type"; } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } GpsL1CaPcpsTongAcquisition::~GpsL1CaPcpsTongAcquisition() { - delete[] code_; + delete[] code_; } diff --git a/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition.cc b/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition.cc index e3a77c560..0b10e6b7d 100644 --- a/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition.cc +++ b/src/algorithms/acquisition/adapters/gps_l2_m_pcps_acquisition.cc @@ -118,13 +118,13 @@ GpsL2MPcpsAcquisition::GpsL2MPcpsAcquisition( // LOG(WARNING) << item_type_ // << " unknown acquisition item type"; // } - gnss_synchro_ = {0}; + gnss_synchro_ = new Gnss_Synchro(); } GpsL2MPcpsAcquisition::~GpsL2MPcpsAcquisition() { - delete[] code_; + delete[] code_; } @@ -144,7 +144,7 @@ void GpsL2MPcpsAcquisition::set_threshold(float threshold) if(pfa == 0.0) { - pfa = configuration_->property(role_+".pfa", 0.0); + pfa = configuration_->property(role_ + ".pfa", 0.0); } if(pfa == 0.0) { diff --git a/src/tests/gnss_block/galileo_e1_dll_pll_veml_tracking_test.cc b/src/tests/gnss_block/galileo_e1_dll_pll_veml_tracking_test.cc index b2c628e3d..59a871ace 100644 --- a/src/tests/gnss_block/galileo_e1_dll_pll_veml_tracking_test.cc +++ b/src/tests/gnss_block/galileo_e1_dll_pll_veml_tracking_test.cc @@ -59,7 +59,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GalileoE1DllPllVemlTrackingInternalTest() diff --git a/src/tests/gnss_block/galileo_e1_pcps_8ms_ambiguous_acquisition_gsoc2013_test.cc b/src/tests/gnss_block/galileo_e1_pcps_8ms_ambiguous_acquisition_gsoc2013_test.cc index 2030cc874..f0556b715 100644 --- a/src/tests/gnss_block/galileo_e1_pcps_8ms_ambiguous_acquisition_gsoc2013_test.cc +++ b/src/tests/gnss_block/galileo_e1_pcps_8ms_ambiguous_acquisition_gsoc2013_test.cc @@ -61,7 +61,7 @@ protected: stop = false; message = 0; factory = std::make_shared(); - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); init(); } diff --git a/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc2013_test.cc b/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc2013_test.cc index 5c8963ad0..73cd75e42 100644 --- a/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc2013_test.cc +++ b/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc2013_test.cc @@ -61,7 +61,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GalileoE1PcpsAmbiguousAcquisitionGSoC2013Test() diff --git a/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc b/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc index bb96f5611..0f502256a 100644 --- a/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc +++ b/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc @@ -70,7 +70,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GalileoE1PcpsAmbiguousAcquisitionGSoCTest() diff --git a/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_test.cc b/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_test.cc index 5531b14ca..faf8fccb0 100644 --- a/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_test.cc +++ b/src/tests/gnss_block/galileo_e1_pcps_ambiguous_acquisition_test.cc @@ -60,7 +60,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GalileoE1PcpsAmbiguousAcquisitionTest() diff --git a/src/tests/gnss_block/galileo_e1_pcps_cccwsr_ambiguous_acquisition_gsoc2013_test.cc b/src/tests/gnss_block/galileo_e1_pcps_cccwsr_ambiguous_acquisition_gsoc2013_test.cc index bb02a14a2..73f31c77a 100644 --- a/src/tests/gnss_block/galileo_e1_pcps_cccwsr_ambiguous_acquisition_gsoc2013_test.cc +++ b/src/tests/gnss_block/galileo_e1_pcps_cccwsr_ambiguous_acquisition_gsoc2013_test.cc @@ -61,7 +61,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); init(); } diff --git a/src/tests/gnss_block/galileo_e1_pcps_quicksync_ambiguous_acquisition_gsoc2014_test.cc b/src/tests/gnss_block/galileo_e1_pcps_quicksync_ambiguous_acquisition_gsoc2014_test.cc index d86f055f7..803dad99b 100644 --- a/src/tests/gnss_block/galileo_e1_pcps_quicksync_ambiguous_acquisition_gsoc2014_test.cc +++ b/src/tests/gnss_block/galileo_e1_pcps_quicksync_ambiguous_acquisition_gsoc2014_test.cc @@ -67,7 +67,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); init(); } diff --git a/src/tests/gnss_block/galileo_e1_pcps_tong_ambiguous_acquisition_gsoc2013_test.cc b/src/tests/gnss_block/galileo_e1_pcps_tong_ambiguous_acquisition_gsoc2013_test.cc index 14933c665..fbef6a0f7 100644 --- a/src/tests/gnss_block/galileo_e1_pcps_tong_ambiguous_acquisition_gsoc2013_test.cc +++ b/src/tests/gnss_block/galileo_e1_pcps_tong_ambiguous_acquisition_gsoc2013_test.cc @@ -67,7 +67,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); init(); } diff --git a/src/tests/gnss_block/galileo_e5a_pcps_acquisition_gsoc2014_gensource_test.cc b/src/tests/gnss_block/galileo_e5a_pcps_acquisition_gsoc2014_gensource_test.cc index 85e5eb7a2..cbf9cce69 100644 --- a/src/tests/gnss_block/galileo_e5a_pcps_acquisition_gsoc2014_gensource_test.cc +++ b/src/tests/gnss_block/galileo_e5a_pcps_acquisition_gsoc2014_gensource_test.cc @@ -62,7 +62,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); init(); } diff --git a/src/tests/gnss_block/galileo_e5a_tracking_test.cc b/src/tests/gnss_block/galileo_e5a_tracking_test.cc index 3639cc391..072050380 100644 --- a/src/tests/gnss_block/galileo_e5a_tracking_test.cc +++ b/src/tests/gnss_block/galileo_e5a_tracking_test.cc @@ -58,7 +58,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GalileoE5aTrackingTest() diff --git a/src/tests/gnss_block/gps_l1_ca_pcps_acquisition_gsoc2013_test.cc b/src/tests/gnss_block/gps_l1_ca_pcps_acquisition_gsoc2013_test.cc index 42fffb71f..9e977b4b2 100644 --- a/src/tests/gnss_block/gps_l1_ca_pcps_acquisition_gsoc2013_test.cc +++ b/src/tests/gnss_block/gps_l1_ca_pcps_acquisition_gsoc2013_test.cc @@ -62,7 +62,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GpsL1CaPcpsAcquisitionGSoC2013Test() diff --git a/src/tests/gnss_block/gps_l1_ca_pcps_acquisition_test.cc b/src/tests/gnss_block/gps_l1_ca_pcps_acquisition_test.cc index cfd14c82e..f22c8fcf0 100644 --- a/src/tests/gnss_block/gps_l1_ca_pcps_acquisition_test.cc +++ b/src/tests/gnss_block/gps_l1_ca_pcps_acquisition_test.cc @@ -62,7 +62,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GpsL1CaPcpsAcquisitionTest() diff --git a/src/tests/gnss_block/gps_l1_ca_pcps_multithread_acquisition_gsoc2013_test.cc b/src/tests/gnss_block/gps_l1_ca_pcps_multithread_acquisition_gsoc2013_test.cc index 2bd17099e..a103dc572 100644 --- a/src/tests/gnss_block/gps_l1_ca_pcps_multithread_acquisition_gsoc2013_test.cc +++ b/src/tests/gnss_block/gps_l1_ca_pcps_multithread_acquisition_gsoc2013_test.cc @@ -66,7 +66,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GpsL1CaPcpsMultithreadAcquisitionGSoC2013Test() diff --git a/src/tests/gnss_block/gps_l1_ca_pcps_opencl_acquisition_gsoc2013_test.cc b/src/tests/gnss_block/gps_l1_ca_pcps_opencl_acquisition_gsoc2013_test.cc index 2fbc826a0..363aea07e 100644 --- a/src/tests/gnss_block/gps_l1_ca_pcps_opencl_acquisition_gsoc2013_test.cc +++ b/src/tests/gnss_block/gps_l1_ca_pcps_opencl_acquisition_gsoc2013_test.cc @@ -62,7 +62,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); init(); } diff --git a/src/tests/gnss_block/gps_l1_ca_pcps_quicksync_acquisition_gsoc2014_test.cc b/src/tests/gnss_block/gps_l1_ca_pcps_quicksync_acquisition_gsoc2014_test.cc index e4bb8ae52..bf6bb6619 100644 --- a/src/tests/gnss_block/gps_l1_ca_pcps_quicksync_acquisition_gsoc2014_test.cc +++ b/src/tests/gnss_block/gps_l1_ca_pcps_quicksync_acquisition_gsoc2014_test.cc @@ -66,7 +66,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GpsL1CaPcpsQuickSyncAcquisitionGSoC2014Test() diff --git a/src/tests/gnss_block/gps_l1_ca_pcps_tong_acquisition_gsoc2013_test.cc b/src/tests/gnss_block/gps_l1_ca_pcps_tong_acquisition_gsoc2013_test.cc index 9d749bbc9..d85470986 100644 --- a/src/tests/gnss_block/gps_l1_ca_pcps_tong_acquisition_gsoc2013_test.cc +++ b/src/tests/gnss_block/gps_l1_ca_pcps_tong_acquisition_gsoc2013_test.cc @@ -63,7 +63,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GpsL1CaPcpsTongAcquisitionGSoC2013Test() diff --git a/src/tests/gnss_block/gps_l2_m_dll_pll_tracking_test.cc b/src/tests/gnss_block/gps_l2_m_dll_pll_tracking_test.cc index 18b134044..c6f2dc1b6 100644 --- a/src/tests/gnss_block/gps_l2_m_dll_pll_tracking_test.cc +++ b/src/tests/gnss_block/gps_l2_m_dll_pll_tracking_test.cc @@ -60,7 +60,7 @@ protected: item_size = sizeof(gr_complex); stop = false; message = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GpsL2MDllPllTrackingTest() diff --git a/src/tests/gnss_block/gps_l2_m_pcps_acquisition_test.cc b/src/tests/gnss_block/gps_l2_m_pcps_acquisition_test.cc index ef5c2df2f..361eb7928 100644 --- a/src/tests/gnss_block/gps_l2_m_pcps_acquisition_test.cc +++ b/src/tests/gnss_block/gps_l2_m_pcps_acquisition_test.cc @@ -68,7 +68,7 @@ protected: message = 0; sampling_freqeuncy_hz = 0; nsamples = 0; - gnss_synchro = {0}; + gnss_synchro = Gnss_Synchro(); } ~GpsL2MPcpsAcquisitionTest()