Skip to content

Commit

Permalink
Check clang format main
Browse files Browse the repository at this point in the history
  • Loading branch information
ann0see committed Sep 8, 2024
1 parent 5227d1c commit 0e6acbf
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,14 +919,7 @@ int main ( int argc, char** argv )
{
// Client:
// actual client object
CClient Client ( iPortNumber,
iQosNumber,
strConnOnStartupAddress,
strMIDISetup,
bNoAutoJackConnect,
strClientName,
bEnableIPv6,
bMuteMeInPersonalMix );
CClient Client ( iPortNumber, iQosNumber, strMIDISetup, bNoAutoJackConnect, strClientName, bEnableIPv6, bMuteMeInPersonalMix );

// load settings from init-file (command line options override)
CClientSettings Settings ( &Client, strIniFileName );
Expand All @@ -950,19 +943,18 @@ int main ( int argc, char** argv )
}

// GUI object
CClientDlg ClientDlg ( &Client,
&Settings,
strConnOnStartupAddress,
strMIDISetup,
bShowComplRegConnList,
bShowAnalyzerConsole,
bMuteStream,
bEnableIPv6,
nullptr );
CClientDlg
ClientDlg ( &Client, &Settings, strMIDISetup, bShowComplRegConnList, bShowAnalyzerConsole, bMuteStream, bEnableIPv6, nullptr );

// show dialog
ClientDlg.show();

// Connect on startup
if ( !strConnOnStartupAddress.isEmpty() )
{
Client.Connect ( strConnOnStartupAddress, strConnOnStartupAddress );
}

pApp->exec();
}
else
Expand All @@ -971,6 +963,12 @@ int main ( int argc, char** argv )
// only start application without using the GUI
qInfo() << qUtf8Printable ( GetVersionAndNameStr ( false ) );

// Connect on startup
if ( !strConnOnStartupAddress.isEmpty() )
{
Client.Connect ( strConnOnStartupAddress, strConnOnStartupAddress );
}

pApp->exec();
}
}
Expand Down

0 comments on commit 0e6acbf

Please sign in to comment.