mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
clang-tidy: apply modernize-raw-string-literal fix (see https://clang.llvm.org/extra/clang-tidy/checks/modernize-raw-string-literal.html)
This commit is contained in:
parent
0d408a6024
commit
b5c0cc04e5
@ -145,14 +145,14 @@ bool GeoJSON_Printer::set_headers(const std::string& filename, bool time_tag_nam
|
||||
|
||||
// Writing the header
|
||||
geojson_file << "{" << std::endl;
|
||||
geojson_file << " \"type\": \"Feature\"," << std::endl;
|
||||
geojson_file << R"( "type": "Feature",)" << std::endl;
|
||||
geojson_file << " \"properties\": {" << std::endl;
|
||||
geojson_file << " \"name\": \"Locations generated by GNSS-SDR\" " << std::endl;
|
||||
geojson_file << R"( "name": "Locations generated by GNSS-SDR" )" << std::endl;
|
||||
geojson_file << " }," << std::endl;
|
||||
|
||||
|
||||
geojson_file << " \"geometry\": {" << std::endl;
|
||||
geojson_file << " \"type\": \"MultiPoint\"," << std::endl;
|
||||
geojson_file << R"( "type": "MultiPoint",)" << std::endl;
|
||||
geojson_file << " \"coordinates\": [" << std::endl;
|
||||
|
||||
return true;
|
||||
|
@ -136,8 +136,8 @@ bool Gpx_Printer::set_headers(const std::string& filename, bool time_tag_name)
|
||||
// Set iostream numeric format and precision
|
||||
gpx_file.setf(gpx_file.std::ofstream::fixed, gpx_file.std::ofstream::floatfield);
|
||||
gpx_file << std::setprecision(14);
|
||||
gpx_file << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << std::endl
|
||||
<< "<gpx version=\"1.1\" creator=\"GNSS-SDR\"" << std::endl
|
||||
gpx_file << R"(<?xml version="1.0" encoding="UTF-8"?>)" << std::endl
|
||||
<< R"(<gpx version="1.1" creator="GNSS-SDR")" << std::endl
|
||||
<< indent << "xsi:schemaLocation=\"http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v2 http://www.garmin.com/xmlschemas/TrackPointExtensionv2.xsd\"" << std::endl
|
||||
<< indent << "xmlns=\"http://www.topografix.com/GPX/1/1\"" << std::endl
|
||||
<< indent << "xmlns:gpxx=\"http://www.garmin.com/xmlschemas/GpxExtensions/v3\"" << std::endl
|
||||
|
@ -149,8 +149,8 @@ bool Kml_Printer::set_headers(const std::string& filename, bool time_tag_name)
|
||||
tmp_file.setf(tmp_file.std::ofstream::fixed, tmp_file.std::ofstream::floatfield);
|
||||
tmp_file << std::setprecision(14);
|
||||
|
||||
kml_file << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << std::endl
|
||||
<< "<kml xmlns=\"http://www.opengis.net/kml/2.2\" xmlns:gx=\"http://www.google.com/kml/ext/2.2\">" << std::endl
|
||||
kml_file << R"(<?xml version="1.0" encoding="UTF-8"?>)" << std::endl
|
||||
<< R"(<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">)" << std::endl
|
||||
<< indent << "<Document>" << std::endl
|
||||
<< indent << indent << "<name>GNSS Track</name>" << std::endl
|
||||
<< indent << indent << "<description><![CDATA[" << std::endl
|
||||
|
@ -4213,7 +4213,7 @@ int rtk_uncompress(const char *file, char *uncfile)
|
||||
{
|
||||
strcpy(uncfile, tmpfile);
|
||||
uncfile[p - tmpfile] = '\0';
|
||||
sprintf(cmd, "gzip -f -d -c \"%s\" > \"%s\"", tmpfile, uncfile);
|
||||
sprintf(cmd, R"(gzip -f -d -c "%s" > "%s")", tmpfile, uncfile);
|
||||
|
||||
if (execcmd(cmd))
|
||||
{
|
||||
@ -4262,7 +4262,7 @@ int rtk_uncompress(const char *file, char *uncfile)
|
||||
{
|
||||
strcpy(uncfile, tmpfile);
|
||||
uncfile[p - tmpfile + 3] = *(p + 3) == 'D' ? 'O' : 'o';
|
||||
sprintf(cmd, "crx2rnx < \"%s\" > \"%s\"", tmpfile, uncfile);
|
||||
sprintf(cmd, R"(crx2rnx < "%s" > "%s")", tmpfile, uncfile);
|
||||
|
||||
if (execcmd(cmd))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user