mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 14:45:42 +08:00
Fix cppcheck and compiler warnings
This commit is contained in:
@@ -15,7 +15,7 @@ namespace BlackCore
|
||||
{
|
||||
namespace Fsd
|
||||
{
|
||||
ClientResponse::ClientResponse() : MessageBase()
|
||||
ClientResponse::ClientResponse()
|
||||
{ }
|
||||
|
||||
ClientResponse::ClientResponse(const QString &sender, const QString &receiver, ClientQueryType queryType, const QStringList &responseData)
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace BlackCore
|
||||
static QString pdu() { return "$CR"; }
|
||||
|
||||
//! Properties @{
|
||||
ClientQueryType m_queryType;
|
||||
ClientQueryType m_queryType {};
|
||||
QStringList m_responseData;
|
||||
//! @}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace BlackCore
|
||||
{
|
||||
namespace Fsd
|
||||
{
|
||||
FlightPlan::FlightPlan() : MessageBase() { }
|
||||
FlightPlan::FlightPlan() { }
|
||||
|
||||
FlightPlan::FlightPlan(const QString &sender, const QString &receiver, FlightType flightType, const QString &aircraftIcaoType,
|
||||
int trueCruisingSpeed, const QString &depAirport, int estimatedDepTime, int actualDepTime, const QString &cruiseAlt,
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace BlackCore
|
||||
static QString pdu() { return "$FP"; }
|
||||
|
||||
//! Properties @{
|
||||
FlightType m_flightType;
|
||||
FlightType m_flightType {};
|
||||
QString m_aircraftIcaoType;
|
||||
int m_trueCruisingSpeed = 0;
|
||||
QString m_depAirport;
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace BlackCore
|
||||
{
|
||||
public:
|
||||
//! Constructor
|
||||
RevBClientParts(const QString &sender, const QString &partsval1, const QString &partsval3, const QString &partsval2);
|
||||
RevBClientParts(const QString &sender, const QString &partsval1, const QString &partsval2, const QString &partsval3);
|
||||
|
||||
|
||||
//! Message converted to tokens
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace BlackCore
|
||||
{
|
||||
namespace Fsd
|
||||
{
|
||||
ServerError::ServerError() : MessageBase()
|
||||
ServerError::ServerError()
|
||||
{ }
|
||||
|
||||
ServerError::ServerError(const QString &sender, const QString &receiver, ServerErrorCode errorCode, const QString &causingParameter, const QString &description)
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace BlackCore
|
||||
//! @}
|
||||
|
||||
//! Properties @{
|
||||
ServerErrorCode m_errorNumber;
|
||||
ServerErrorCode m_errorNumber {};
|
||||
QString m_causingParameter;
|
||||
QString m_description;
|
||||
//! @}
|
||||
|
||||
Reference in New Issue
Block a user