mirror of https://github.com/odrling/Aegisub
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:
parent
82412e6428
commit
3691849bac
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue