summaryrefslogtreecommitdiffstats
path: root/contrib/gen_manual/gen_manual.cpp
diff options
context:
space:
mode:
authorNate <37554478+servusDei2018@users.noreply.github.com>2020-07-24 00:13:14 (GMT)
committerGitHub <noreply@github.com>2020-07-24 00:13:14 (GMT)
commite416cc9baa8f228108175b3551726c3f04aec3ee (patch)
tree53194ff0c7bd79fd5ff8f5afee6d1e61006cb85c /contrib/gen_manual/gen_manual.cpp
parent48f9ecfb3436877b014d22280d36e7644f867140 (diff)
downloadlz4-e416cc9baa8f228108175b3551726c3f04aec3ee.zip
lz4-e416cc9baa8f228108175b3551726c3f04aec3ee.tar.gz
lz4-e416cc9baa8f228108175b3551726c3f04aec3ee.tar.bz2
Optimized by replacing `endl` with `'\n'`
Diffstat (limited to 'contrib/gen_manual/gen_manual.cpp')
-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';
}
}