diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/init.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gui/init.cpp b/gui/init.cpp index c3ca53e0..9821404d 100644 --- a/gui/init.cpp +++ b/gui/init.cpp @@ -149,12 +149,10 @@ static void qdebug_to_console(QtMsgType loglevel, const QMessageLogContext& ctx, bytes[len-1] = 0; (void)msg.toWCharArray(bytes); #endif - { - if (ctx.file) - std::fprintf(stderr, "%s [%s:%d]: %ls\n", level, ctx.file, ctx.line, bytes); - else - std::fprintf(stderr, "%s %ls\n", level, bytes); - } + if (ctx.file) + std::fprintf(stderr, "%s [%s:%d]: %ls\n", level, ctx.file, ctx.line, bytes); + else + std::fprintf(stderr, "%s %ls\n", level, bytes); std::fflush(stderr); } } |