mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-12-01 14:18:08 +00:00
Replace C-style casts by C++ casts
This commit is contained in:
@@ -431,7 +431,7 @@ int galileo_e1_dll_pll_veml_tracking_cc::general_work (int noutput_items __attri
|
||||
current_synchro_data.System = {'E'};
|
||||
std::string str_aux = "1B";
|
||||
const char * str = str_aux.c_str(); // get a C style null terminated string
|
||||
std::memcpy((void*)current_synchro_data.Signal, str, 3);
|
||||
std::memcpy(static_cast<void*>(current_synchro_data.Signal), str, 3);
|
||||
|
||||
current_synchro_data.fs = d_fs_in;
|
||||
*out[0] = current_synchro_data;
|
||||
|
||||
@@ -441,7 +441,7 @@ int Galileo_E1_Tcp_Connector_Tracking_cc::general_work (int noutput_items __attr
|
||||
current_synchro_data.System = {'E'};
|
||||
std::string str_aux = "1B";
|
||||
const char * str = str_aux.c_str(); // get a C style null terminated string
|
||||
std::memcpy((void*)current_synchro_data.Signal, str, 3);
|
||||
std::memcpy(static_cast<void*>(current_synchro_data.Signal), str, 3);
|
||||
|
||||
current_synchro_data.fs = d_fs_in;
|
||||
*out[0] = current_synchro_data;
|
||||
|
||||
@@ -482,7 +482,7 @@ int Gps_L1_Ca_Tcp_Connector_Tracking_cc::general_work (int noutput_items __attri
|
||||
current_synchro_data.System = {'G'};
|
||||
std::string str_aux = "1C";
|
||||
const char * str = str_aux.c_str(); // get a C style null terminated string
|
||||
std::memcpy((void*)current_synchro_data.Signal, str, 3);
|
||||
std::memcpy(static_cast<void*>(current_synchro_data.Signal), str, 3);
|
||||
|
||||
current_synchro_data.fs = d_fs_in;
|
||||
*out[0] = current_synchro_data;
|
||||
|
||||
Reference in New Issue
Block a user