Commit dbe83da2 authored by Martin Kröning's avatar Martin Kröning 🦀

Replace `std::endl` with `'\n'`

See [LLVM Coding Standards](https://llvm.org/docs/CodingStandards.html#avoid-std-endl)
parent 21ee17de
...@@ -49,12 +49,12 @@ int main(int argc, char *argv[]) { ...@@ -49,12 +49,12 @@ int main(int argc, char *argv[]) {
po::notify(variablesMap); po::notify(variablesMap);
if (variablesMap.count("help") > 0) { if (variablesMap.count("help") > 0) {
std::cout << "Usage: " + std::string(args.at(0)) + std::cout
" [OPTION]... [FILE]\n" << "Usage: " << args.at(0)
"Parses and simulates FILE according to the PI-2 of the " << " [OPTION]... [FILE]\n"
"RWTH.\n\n" "Parses and simulates FILE according to the PI-2 of the RWTH.\n\n"
<< visibleOptions << std::endl; << visibleOptions;
return 1; return 0;
} }
if (variablesMap.count("input-file") > 0) { if (variablesMap.count("input-file") > 0) {
...@@ -77,16 +77,16 @@ int main(int argc, char *argv[]) { ...@@ -77,16 +77,16 @@ int main(int argc, char *argv[]) {
std::chrono::seconds(seconds); std::chrono::seconds(seconds);
map.simulate(duration, timescale, refreshRate); map.simulate(duration, timescale, refreshRate);
std::cout << "Simulation done!" << std::endl; std::cout << "Simulation done!\n";
} else { } else {
std::cout << "Failed to open " << nativePathname << std::endl; std::cout << "Failed to open " << nativePathname << '\n';
return 1; return 1;
} }
} else { } else {
std::cout << "Input file was not set.\n"; std::cout << "Input file was not set.\n";
} }
} catch (std::exception &e) { } catch (std::exception &e) {
std::cout << e.what() << std::endl; std::cout << e.what() << '\n';
return 1; return 1;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment