From d2b1cb8a063ec9ddc0dc54b7ff700d3e2829b2e0 Mon Sep 17 00:00:00 2001 From: Ryan Kramer Date: Mon, 25 May 2015 11:33:03 -0500 Subject: [PATCH] Correct a Most Vexing Parse and move Console initialization to the beginning of main() --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fb480ae00e1..8f0cf6de492 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -171,6 +171,7 @@ void MessageHandler(QtMsgType type, int main(int argc, char * argv[]) { + Console console; #ifdef Q_OS_LINUX XInitThreads(); @@ -248,8 +249,6 @@ int main(int argc, char * argv[]) return(0); } - Console console(); - #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) qInstallMsgHandler(MessageHandler); #else