[FS9] Minor style fixes

This commit is contained in:
Klaus Basan
2019-11-19 19:58:32 +01:00
committed by Mat Sutcliffe
parent 34f9fb89d6
commit 22d8b52fe8
2 changed files with 4 additions and 5 deletions

View File

@@ -190,7 +190,7 @@ namespace BlackSimPlugin
void CFs9Client::timerEvent(QTimerEvent *event) void CFs9Client::timerEvent(QTimerEvent *event)
{ {
Q_UNUSED(event); Q_UNUSED(event)
sendMultiplayerPosition(); sendMultiplayerPosition();
sendMultiplayerParamaters(); sendMultiplayerParamaters();
@@ -199,10 +199,9 @@ namespace BlackSimPlugin
HRESULT CFs9Client::enumDirectPlayHosts() HRESULT CFs9Client::enumDirectPlayHosts()
{ {
HRESULT hr = s_ok(); HRESULT hr = s_ok();
if (isFailure(hr = createHostAddress())) if (isFailure(hr = createHostAddress()))
{ {
qWarning() << "isFailure to create host address!"; CLogMessage(this).warning(u"FS9Client isFailure to create host address!");
return hr; return hr;
} }

View File

@@ -182,7 +182,7 @@ namespace BlackSimPlugin
client->start(); client->start();
m_hashFs9Clients.insert(callsign, client); m_hashFs9Clients.insert(callsign, client);
bool updated = updateAircraftRendered(callsign, rendered); const bool updated = updateAircraftRendered(callsign, rendered);
CSimulatedAircraft remoteAircraftCopy(newRemoteAircraft); CSimulatedAircraft remoteAircraftCopy(newRemoteAircraft);
remoteAircraftCopy.setRendered(rendered); remoteAircraftCopy.setRendered(rendered);
if (updated) if (updated)
@@ -303,7 +303,7 @@ namespace BlackSimPlugin
CFs9Client *client = m_hashFs9Clients[callsign].data(); CFs9Client *client = m_hashFs9Clients[callsign].data();
if (!client) { return false; } if (!client) { return false; }
Q_UNUSED(parts); Q_UNUSED(parts)
int u = 0; int u = 0;
if (situation.isNull()) if (situation.isNull())
{ {