1
0
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:
Carles Fernandez 2020-03-01 13:57:23 +01:00
parent ad97144f8f
commit b5efbf275d
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -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())
{