mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-01 02:49:03 +08:00
pass by ref bugfix
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user