From 3691849bac15c392431719b2b072a7422f9b04cd Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 13 Oct 2013 08:16:20 -0700 Subject: [PATCH] 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. --- aegisub/libaegisub/common/log.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aegisub/libaegisub/common/log.cpp b/aegisub/libaegisub/common/log.cpp index 912eb4485..34b400b92 100644 --- a/aegisub/libaegisub/common/log.cpp +++ b/aegisub/libaegisub/common/log.cpp @@ -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;