Fixed clazy warnings: returning void expression.

This commit is contained in:
Mat Sutcliffe
2018-12-17 17:19:49 +00:00
parent e32ea65a27
commit 8979b5257e
10 changed files with 15 additions and 15 deletions

View File

@@ -83,7 +83,7 @@ namespace BlackSimPlugin
void CSimulatorEmulated::unload()
{
if (canLog()) { m_monitorWidget->appendReceivingCall(Q_FUNC_INFO); }
return CSimulatorPluginCommon::unload();
CSimulatorPluginCommon::unload();
}
bool CSimulatorEmulated::logicallyAddRemoteAircraft(const CSimulatedAircraft &remoteAircraft)

View File

@@ -209,7 +209,7 @@ namespace BlackSimPlugin
void CSimConnectObject::attachInterpolatorLogger(CInterpolationLogger *logger) const
{
Q_ASSERT(m_interpolator);
return m_interpolator->attachLogger(logger);
m_interpolator->attachLogger(logger);
}
CInterpolationResult CSimConnectObject::getInterpolation(qint64 currentTimeSinceEpoc, const CInterpolationAndRenderingSetupPerCallsign &setup, int aircraftNumber) const

View File

@@ -294,10 +294,10 @@ namespace BlackSimPlugin
{
#ifdef Q_OS_WIN64
if (!loadAndResolveP3DSimConnectByString(m_p3dVersion.get())) { return; }
return CSimulatorFsxCommonListener::startImpl();
CSimulatorFsxCommonListener::startImpl();
#else
if (!loadAndResolveFsxSimConnect(true)) { return; }
return CSimulatorFsxCommonListener::startImpl();
CSimulatorFsxCommonListener::startImpl();
#endif
}

View File

@@ -41,7 +41,7 @@ namespace BlackSimPlugin
void CXPlaneMPAircraft::attachInterpolatorLogger(CInterpolationLogger *logger) const
{
Q_ASSERT(m_interpolator);
return m_interpolator->attachLogger(logger);
m_interpolator->attachLogger(logger);
}
CInterpolationResult CXPlaneMPAircraft::getInterpolation(qint64 currentTimeSinceEpoc, const CInterpolationAndRenderingSetupPerCallsign &setup, int aircraftNumber) const