small style fixes

This commit is contained in:
gabime
2015-05-09 16:03:43 +03:00
parent 00d5c94135
commit 64850dcb0c
4 changed files with 13 additions and 8 deletions

View File

@@ -80,7 +80,8 @@ public:
_file_helper.open(calc_filename(_base_filename, 0, _extension));
}
virtual void flush() override {
void flush() override
{
_file_helper.flush();
}
@@ -171,7 +172,8 @@ public:
_file_helper.open(calc_filename(_base_filename, _extension));
}
virtual void flush() override {
void flush() override
{
_file_helper.flush();
}

View File

@@ -45,14 +45,15 @@ public:
virtual ~ostream_sink() = default;
protected:
virtual void _sink_it(const details::log_msg& msg) override
void _sink_it(const details::log_msg& msg) override
{
_ostream.write(msg.formatted.data(), msg.formatted.size());
if (_force_flush)
_ostream.flush();
}
virtual void flush() override {
void flush() override
{
_ostream.flush();
}

View File

@@ -78,7 +78,8 @@ public:
::syslog(syslog_prio_from_level(msg), "%s", msg.formatted.str().c_str());
}
virtual void flush() override {
void flush() override
{
}