use os.put() for single chars
This commit is contained in:
parent
030f6c2dba
commit
b4755b07e0
7
Log.cpp
7
Log.cpp
|
@ -32,7 +32,8 @@ public:
|
||||||
|
|
||||||
std::ostream* os = getOs(lvl);
|
std::ostream* os = getOs(lvl);
|
||||||
if (os) {
|
if (os) {
|
||||||
*os << sbuf << '\n';
|
*os << sbuf;
|
||||||
|
os->put('\n');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -83,7 +84,7 @@ private:
|
||||||
else
|
else
|
||||||
*os << sbuf;
|
*os << sbuf;
|
||||||
|
|
||||||
*os << '\n';
|
os->put('\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,7 +192,7 @@ void init() {
|
||||||
// set default entry metadata printing functions
|
// set default entry metadata printing functions
|
||||||
auto space = [](std::ostream& os, const Entry& e) -> std::ostream& {
|
auto space = [](std::ostream& os, const Entry& e) -> std::ostream& {
|
||||||
(void) e;
|
(void) e;
|
||||||
return os << ' ';
|
return os.put(' ');
|
||||||
};
|
};
|
||||||
entryMetaFunctions = {
|
entryMetaFunctions = {
|
||||||
defaultEntryMetaTime,
|
defaultEntryMetaTime,
|
||||||
|
|
Loading…
Reference in New Issue