summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2020-08-21 21:17:43 (GMT)
committerGitHub <noreply@github.com>2020-08-21 21:17:43 (GMT)
commit34fe7c9d7f4fbeeb42c22f4ad1a01c1771d14268 (patch)
tree3c85594bd8d48a153f9b49941cf416373017ca41
parent04a425d0472243b9a59fbc343daf582c90370521 (diff)
parente416cc9baa8f228108175b3551726c3f04aec3ee (diff)
downloadlz4-34fe7c9d7f4fbeeb42c22f4ad1a01c1771d14268.zip
lz4-34fe7c9d7f4fbeeb42c22f4ad1a01c1771d14268.tar.gz
lz4-34fe7c9d7f4fbeeb42c22f4ad1a01c1771d14268.tar.bz2
Merge pull request #886 from servusDei2018/dev
Optimized by replacing `endl` with `'\n'`
-rw-r--r--contrib/gen_manual/gen_manual.cpp5
1 files 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 << "</b>" << line.substr(spos) << "<b>" << endl;
+ sout << "</b>" << line.substr(spos) << "<b>" << '\n';
} else {
- // fprintf(stderr, "lines=%s\n", line.c_str());
- sout << line << endl;
+ sout << line << '\n';
}
}