mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Declare empty constructor as default
This commit is contained in:
@@ -38,7 +38,7 @@ namespace BlackMisc::Audio
|
|||||||
};
|
};
|
||||||
|
|
||||||
//! Default constructor.
|
//! Default constructor.
|
||||||
CVoiceSetup() {}
|
CVoiceSetup() = default;
|
||||||
|
|
||||||
//! Setup with values
|
//! Setup with values
|
||||||
CVoiceSetup(const QString &afvVoiceServerUrl, const QString &afvMapUrl);
|
CVoiceSetup(const QString &afvVoiceServerUrl, const QString &afvMapUrl);
|
||||||
|
|||||||
@@ -24,9 +24,6 @@ BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Aviation, CAirport)
|
|||||||
|
|
||||||
namespace BlackMisc::Aviation
|
namespace BlackMisc::Aviation
|
||||||
{
|
{
|
||||||
CAirport::CAirport()
|
|
||||||
{ }
|
|
||||||
|
|
||||||
CAirport::CAirport(const QString &icao) :
|
CAirport::CAirport(const QString &icao) :
|
||||||
m_icao(icao)
|
m_icao(icao)
|
||||||
{ }
|
{ }
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ namespace BlackMisc::Aviation
|
|||||||
};
|
};
|
||||||
|
|
||||||
//! Default constructor.
|
//! Default constructor.
|
||||||
CAirport();
|
CAirport() = default;
|
||||||
|
|
||||||
//! Simplified constructor
|
//! Simplified constructor
|
||||||
CAirport(const QString &icao);
|
CAirport(const QString &icao);
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ BLACK_DEFINE_SEQUENCE_MIXINS(BlackMisc::Aviation, CAirport, CAirportList)
|
|||||||
|
|
||||||
namespace BlackMisc::Aviation
|
namespace BlackMisc::Aviation
|
||||||
{
|
{
|
||||||
CAirportList::CAirportList() { }
|
|
||||||
|
|
||||||
CAirportList::CAirportList(const CSequence<CAirport> &other) :
|
CAirportList::CAirportList(const CSequence<CAirport> &other) :
|
||||||
CSequence<CAirport>(other)
|
CSequence<CAirport>(other)
|
||||||
{ }
|
{ }
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ namespace BlackMisc::Aviation
|
|||||||
using CSequence::CSequence;
|
using CSequence::CSequence;
|
||||||
|
|
||||||
//! Default constructor.
|
//! Default constructor.
|
||||||
CAirportList();
|
CAirportList() = default;
|
||||||
|
|
||||||
//! Construct from a base class object.
|
//! Construct from a base class object.
|
||||||
CAirportList(const CSequence<CAirport> &other);
|
CAirportList(const CSequence<CAirport> &other);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace BlackMisc::Network
|
|||||||
};
|
};
|
||||||
|
|
||||||
//! Default constructor.
|
//! Default constructor.
|
||||||
CRawFsdMessage() {}
|
CRawFsdMessage() = default;
|
||||||
|
|
||||||
//! Constructor.
|
//! Constructor.
|
||||||
CRawFsdMessage(const QString &rawMessage);
|
CRawFsdMessage(const QString &rawMessage);
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ namespace BlackMisc
|
|||||||
//! @}
|
//! @}
|
||||||
|
|
||||||
//! Default constructor.
|
//! Default constructor.
|
||||||
CSequence() {}
|
CSequence() = default;
|
||||||
|
|
||||||
//! Initializer list constructor.
|
//! Initializer list constructor.
|
||||||
CSequence(std::initializer_list<T> il) : m_impl(il) {}
|
CSequence(std::initializer_list<T> il) : m_impl(il) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user