Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer raw strings over escaped strings #2789

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion io/tools/hdl_grabber_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class SimpleHDLGrabber
// start receiving point clouds
interface.start ();

std::cout << "<Esc>, \'q\', \'Q\': quit the program" << std::endl;
std::cout << R"(<Esc>, 'q', 'Q': quit the program)" << std::endl;
char key;
do
{
Expand Down
2 changes: 1 addition & 1 deletion io/tools/openni_grabber_depth_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class SimpleOpenNIProcessor
// start receiving point clouds
interface.start ();

std::cout << "<Esc>, \'q\', \'Q\': quit the program" << std::endl;
std::cout << R"(<Esc>, 'q', 'Q': quit the program)" << std::endl;
std::cout << "\' \': pause" << std::endl;
char key;
do
Expand Down
2 changes: 1 addition & 1 deletion io/tools/openni_grabber_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class SimpleOpenNIProcessor
// start receiving point clouds
interface.start ();

std::cout << "<Esc>, \'q\', \'Q\': quit the program" << std::endl;
std::cout << R"(<Esc>, 'q', 'Q': quit the program)" << std::endl;
std::cout << "\' \': pause" << std::endl;
std::cout << "\'s\': save" << std::endl;
char key;
Expand Down
2 changes: 1 addition & 1 deletion io/tools/pcd_convert_NaN_nan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ main (int argc, char **argv)
ss << std::numeric_limits<float>::quiet_NaN ();
std::string nanStr (ss.str ());

std::cout << "converting \"" << nanStr << "\" to \"nan\"" << std::endl;
std::cout << R"(converting ")" << nanStr << R"(" to "nan")" << std::endl;

std::ifstream input (argv[1]);
std::ofstream output (argv[2]);
Expand Down
2 changes: 1 addition & 1 deletion visualization/tools/pcd_grabber_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ main (int argc, char** argv)
}
else
{
std::cout << "Neither a pcd file given using the \"-file\" option, nor given a directory containing pcd files using the \"-dir\" option." << std::endl;
std::cout << R"(Neither a pcd file given using the "-file" option, nor given a directory containing pcd files using the "-dir" option.)" << std::endl;
}

// Sort the read files by name
Expand Down