pass by ref bugfix

This commit is contained in:
gabi
2014-10-18 19:03:41 +03:00
parent 21065ec036
commit b36a803469
3 changed files with 5 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ public:
void write(const log_msg& msg, std::ofstream& ofs)
{
auto buf = msg.formatted.buf();
auto& buf = msg.formatted.buf();
ofs.write(buf.data(), buf.size());
if(--_flush_countdown == 0)
{