use os.put() for single chars

This commit is contained in:
Oliver 2022-09-04 23:45:04 +02:00
parent 030f6c2dba
commit b4755b07e0
Signed by untrusted user: okaestne
GPG Key ID: 06A81B143EA9588F
1 changed files with 4 additions and 3 deletions

View File

@ -32,7 +32,8 @@ public:
std::ostream* os = getOs(lvl);
if (os) {
*os << sbuf << '\n';
*os << sbuf;
os->put('\n');
}
};
@ -83,7 +84,7 @@ private:
else
*os << sbuf;
*os << '\n';
os->put('\n');
}
}
@ -191,7 +192,7 @@ void init() {
// set default entry metadata printing functions
auto space = [](std::ostream& os, const Entry& e) -> std::ostream& {
(void) e;
return os << ' ';
return os.put(' ');
};
entryMetaFunctions = {
defaultEntryMetaTime,