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
1 changed files with 1 additions and 3 deletions

View File

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