From e416cc9baa8f228108175b3551726c3f04aec3ee Mon Sep 17 00:00:00 2001 From: Nate <37554478+servusDei2018@users.noreply.github.com> Date: Thu, 23 Jul 2020 20:13:14 -0400 Subject: Optimized by replacing `endl` with `'\n'` --- contrib/gen_manual/gen_manual.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/gen_manual/gen_manual.cpp b/contrib/gen_manual/gen_manual.cpp index bedef94..d5fe702 100644 --- a/contrib/gen_manual/gen_manual.cpp +++ b/contrib/gen_manual/gen_manual.cpp @@ -96,10 +96,9 @@ void print_line(stringstream &sout, string line) epos = line.find("*/"); if (spos!=string::npos && epos!=string::npos) { sout << line.substr(0, spos); - sout << "" << line.substr(spos) << "" << endl; + sout << "" << line.substr(spos) << "" << '\n'; } else { - // fprintf(stderr, "lines=%s\n", line.c_str()); - sout << line << endl; + sout << line << '\n'; } } -- cgit v0.12