mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Fix clang-tidy warning bugprone-string-literal-with-embedded-nul
See https://clang.llvm.org/extra/clang-tidy/checks/bugprone-string-literal-with-embedded-nul.html
This commit is contained in:
parent
ad97144f8f
commit
b5efbf275d
@ -1291,7 +1291,7 @@ void RINEX_doublediff_dupli_sat()
|
||||
{
|
||||
// special test mode for duplicated satellites
|
||||
// read rinex receiver-under-test observations
|
||||
std::map<int, arma::mat> test_obs = ReadRinexObs(FLAGS_test_rinex_obs, 'G', std::string("1C\0"));
|
||||
std::map<int, arma::mat> test_obs = ReadRinexObs(FLAGS_test_rinex_obs, 'G', std::string("1C"));
|
||||
if (test_obs.empty())
|
||||
{
|
||||
return;
|
||||
@ -1359,9 +1359,9 @@ void RINEX_doublediff_dupli_sat()
|
||||
void RINEX_doublediff(bool remove_rx_clock_error)
|
||||
{
|
||||
// read rinex reference observations
|
||||
std::map<int, arma::mat> ref_obs = ReadRinexObs(FLAGS_ref_rinex_obs, 'G', std::string("1C\0"));
|
||||
std::map<int, arma::mat> ref_obs = ReadRinexObs(FLAGS_ref_rinex_obs, 'G', std::string("1C"));
|
||||
// read rinex receiver-under-test observations
|
||||
std::map<int, arma::mat> test_obs = ReadRinexObs(FLAGS_test_rinex_obs, 'G', std::string("1C\0"));
|
||||
std::map<int, arma::mat> test_obs = ReadRinexObs(FLAGS_test_rinex_obs, 'G', std::string("1C"));
|
||||
|
||||
if (ref_obs.empty() or test_obs.empty())
|
||||
{
|
||||
@ -1548,7 +1548,7 @@ void RINEX_doublediff(bool remove_rx_clock_error)
|
||||
void RINEX_singlediff()
|
||||
{
|
||||
// read rinex receiver-under-test observations
|
||||
std::map<int, arma::mat> test_obs = ReadRinexObs(FLAGS_test_rinex_obs, 'G', std::string("1C\0"));
|
||||
std::map<int, arma::mat> test_obs = ReadRinexObs(FLAGS_test_rinex_obs, 'G', std::string("1C"));
|
||||
|
||||
if (test_obs.empty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user