Fix cppcheck and compiler warnings

This commit is contained in:
Mat Sutcliffe
2020-06-18 23:48:58 +01:00
parent 9309beefc4
commit 670b1a1986
61 changed files with 131 additions and 153 deletions

View File

@@ -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)

View File

@@ -38,7 +38,7 @@ namespace BlackCore
static QString pdu() { return "$CR"; }
//! Properties @{
ClientQueryType m_queryType;
ClientQueryType m_queryType {};
QStringList m_responseData;
//! @}

View File

@@ -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,

View File

@@ -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;

View File

@@ -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

View File

@@ -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)

View File

@@ -43,7 +43,7 @@ namespace BlackCore
//! @}
//! Properties @{
ServerErrorCode m_errorNumber;
ServerErrorCode m_errorNumber {};
QString m_causingParameter;
QString m_description;
//! @}