mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
pass by ref bugfix
This commit is contained in:
@@ -24,7 +24,7 @@ public:
|
||||
protected:
|
||||
virtual void _sink_it(const details::log_msg& msg) override
|
||||
{
|
||||
auto buf = msg.formatted.buf();
|
||||
auto& buf = msg.formatted.buf();
|
||||
_ostream.write(buf.data(), buf.size());
|
||||
}
|
||||
std::ostream& _ostream;
|
||||
|
Reference in New Issue
Block a user