Format code & mention issue #6

This commit is contained in:
Alex Spataru 2021-02-05 01:05:58 -05:00
parent d1332c9380
commit 3bd194f3a4

View File

@ -30,7 +30,7 @@
#include <Misc/ModuleManager.h>
#ifdef Q_OS_WIN
#include <windows.h>
# include <windows.h>
#endif
/**
@ -63,14 +63,15 @@ static void cliResetSettings()
* @return qApp exit code
*/
int main(int argc, char **argv)
{
{
// Fix console output on Windows
#ifdef _WIN32
if (AttachConsole(ATTACH_PARENT_PROCESS)) {
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
qDebug() << "";
}
if (AttachConsole(ATTACH_PARENT_PROCESS))
{
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
qDebug() << "";
}
#endif
// Set application attributes
@ -103,7 +104,7 @@ int main(int argc, char **argv)
return EXIT_SUCCESS;
}
}
// Create module manager & configure the logger
ModuleManager moduleManager;
moduleManager.configureLogger();