From 0a19a6d8f51c0a21d95ab69b61dbc9ffc765199c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 11 Dec 2013 19:16:16 -0800 Subject: [PATCH] Don't use uniform initialization for structs because VC++ 2013 is buggy --- aegisub/libaegisub/common/log.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aegisub/libaegisub/common/log.cpp b/aegisub/libaegisub/common/log.cpp index 20bb57281..46b981f12 100644 --- a/aegisub/libaegisub/common/log.cpp +++ b/aegisub/libaegisub/common/log.cpp @@ -83,8 +83,13 @@ decltype(LogSink::messages) LogSink::GetMessages() const { Message::Message(const char *section, Severity severity, const char *file, const char *func, int line) : msg(buffer, sizeof buffer) -, sm{section, severity, file, func, line, util::time_log(), ""} { + sm.section = section; + sm.severity = severity; + sm.file = file; + sm.func = func; + sm.line = line; + sm.tv = util::time_log(); } Message::~Message() {