mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Format code & mention issue #6
This commit is contained in:
parent
d1332c9380
commit
3bd194f3a4
17
src/main.cpp
17
src/main.cpp
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user