Fix logging on OS X

Passing nullptr to ostrstream's constructor is a nonstandard extension
that libc++ doesn't support, and as it turns out preallocating a buffer
doesn't actually meaningfully improve performance anyway.
This commit is contained in:
Thomas Goyne 2013-10-13 08:16:20 -07:00
parent 82412e6428
commit 3691849bac

View file

@ -84,9 +84,7 @@ decltype(LogSink::messages) LogSink::GetMessages() const {
return ret;
}
Message::Message(const char *section, Severity severity, const char *file, const char *func, int line)
: msg(nullptr, 1024)
{
Message::Message(const char *section, Severity severity, const char *file, const char *func, int line) {
sm.section = section;
sm.severity = severity;
sm.file = file;