mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
refs #358, fixed redundantAssignment from Jenkins Cppcheck
This commit is contained in:
@@ -138,8 +138,7 @@ namespace BlackSimPlugin
|
||||
{
|
||||
if (m_simConnected) { return true; }
|
||||
HANDLE hSimConnect; // temporary handle
|
||||
bool connect = false;
|
||||
connect = SUCCEEDED(SimConnect_Open(&hSimConnect, BlackMisc::CProject::systemNameAndVersionChar(), nullptr, 0, 0, 0));
|
||||
bool connect = SUCCEEDED(SimConnect_Open(&hSimConnect, BlackMisc::CProject::systemNameAndVersionChar(), nullptr, 0, 0, 0));
|
||||
SimConnect_Close(hSimConnect);
|
||||
return connect;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user