refactor: Fix clang-tidy modernize-use-override

This commit is contained in:
Lars Toenning
2025-10-09 22:59:25 +02:00
parent 29bc905e56
commit 8f946b77d5
781 changed files with 2015 additions and 2370 deletions

View File

@@ -291,7 +291,6 @@ add_library(misc SHARED
propertyindexref.h
propertyindexvariantmap.cpp
propertyindexvariantmap.h
provider.cpp
provider.h
range.h
registermetadata.cpp

View File

@@ -14,8 +14,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc, CApplicationInfo, CApplicationInfoList
namespace swift::misc
{
CApplicationInfoList::CApplicationInfoList() {}
CApplicationInfoList::CApplicationInfoList(const CSequence<CApplicationInfo> &other)
: CSequence<CApplicationInfo>(other)
{}

View File

@@ -26,7 +26,7 @@ namespace swift::misc
using CSequence::CSequence;
//! Default constructor.
CApplicationInfoList();
CApplicationInfoList() = default;
//! Construct from base class object.
CApplicationInfoList(const CSequence<CApplicationInfo> &other);

View File

@@ -31,15 +31,15 @@ namespace swift::misc
CAtomicFile(const QString &filename) : QFile(filename) {}
//! \copydoc QFile::~QFile
virtual ~CAtomicFile() override;
~CAtomicFile() override;
//! \copydoc QFile::open
//! Just before opening the file, the filename is changed so we actually write to a temporary file.
virtual bool open(OpenMode mode) override;
bool open(OpenMode mode) override;
//! \copydoc QFileDevice::close
//! After closing the file, it is renamed so that it overwrites the target file.
virtual void close() override;
void close() override;
//! Calls close() and returns false if there was an error at any stage.
bool checkedClose();

View File

@@ -13,8 +13,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftCategory, CAircraft
namespace swift::misc::aviation
{
CAircraftCategoryList::CAircraftCategoryList() {}
CAircraftCategoryList::CAircraftCategoryList(const CSequence<CAircraftCategory> &other)
: CSequence<CAircraftCategory>(other)
{}

View File

@@ -34,7 +34,7 @@ namespace swift::misc::aviation
using CSequence::CSequence;
//! Default constructor.
CAircraftCategoryList();
CAircraftCategoryList() = default;
//! Construct from a base class object.
CAircraftCategoryList(const CSequence<CAircraftCategory> &other);

View File

@@ -22,7 +22,7 @@ namespace swift::misc::aviation
{
public:
//! Default constructor
CAircraftEngine() {}
CAircraftEngine() = default;
//! Constructor
//! \remark numbers are 1 based!

View File

@@ -54,7 +54,7 @@ namespace swift::misc::aviation
};
//! Default constructor.
CAircraftIcaoCode() {}
CAircraftIcaoCode() = default;
//! Constructor.
CAircraftIcaoCode(const QString &icao, const QString &combinedType = "");

View File

@@ -13,8 +13,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftIcaoCode, CAircraft
namespace swift::misc::aviation
{
CAircraftIcaoCodeList::CAircraftIcaoCodeList() {}
CAircraftIcaoCodeList::CAircraftIcaoCodeList(const CSequence<CAircraftIcaoCode> &other)
: CSequence<CAircraftIcaoCode>(other)
{}

View File

@@ -35,7 +35,7 @@ namespace swift::misc::aviation
using CSequence::CSequence;
//! Default constructor.
CAircraftIcaoCodeList();
CAircraftIcaoCodeList() = default;
//! Construct from a base class object.
CAircraftIcaoCodeList(const CSequence<CAircraftIcaoCode> &other);

View File

@@ -46,7 +46,7 @@ namespace swift::misc::aviation
};
//! Default constructor
CAircraftParts() {}
CAircraftParts() = default;
//! Default constructor
CAircraftParts(int flapsPercent);

View File

@@ -9,8 +9,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftParts, CAircraftPar
namespace swift::misc::aviation
{
CAircraftPartsList::CAircraftPartsList() {}
CAircraftPartsList::CAircraftPartsList(const CSequence<CAircraftParts> &other) : CSequence<CAircraftParts>(other) {}
int CAircraftPartsList::setOnGround(bool onGround)

View File

@@ -31,7 +31,7 @@ namespace swift::misc::aviation
using CSequence::CSequence;
//! Default constructor.
CAircraftPartsList();
CAircraftPartsList() = default;
//! Construct from a base class object.
CAircraftPartsList(const CSequence<CAircraftParts> &other);

View File

@@ -87,8 +87,6 @@ namespace swift::misc::aviation
qRegisterMetaType<CAircraftSituation::GndElevationInfo>();
}
CAircraftSituation::CAircraftSituation() {}
CAircraftSituation::CAircraftSituation(const CCallsign &correspondingCallsign)
: m_correspondingCallsign(correspondingCallsign)
{}

View File

@@ -104,7 +104,7 @@ namespace swift::misc
};
//! Default constructor.
CAircraftSituation();
CAircraftSituation() = default;
//! Constructor with callsign
CAircraftSituation(const CCallsign &correspondingCallsign);
@@ -143,7 +143,7 @@ namespace swift::misc
bool isPositionOrAltitudeNull() const { return this->isPositionNull() || this->getAltitude().isNull(); }
//! Null situation
virtual bool isNull() const override;
bool isNull() const override;
//! Is given info better (more accurate)?
bool isOtherElevationInfoBetter(GndElevationInfo otherInfo, bool transferred) const;
@@ -171,10 +171,10 @@ namespace swift::misc
void setPosition(const geo::CCoordinateGeodetic &position) { m_position = position; }
//! \copydoc geo::ICoordinateGeodetic::latitude()
virtual geo::CLatitude latitude() const override { return m_position.latitude(); }
geo::CLatitude latitude() const override { return m_position.latitude(); }
//! \copydoc geo::ICoordinateGeodetic::longitude()
virtual geo::CLongitude longitude() const override { return m_position.longitude(); }
geo::CLongitude longitude() const override { return m_position.longitude(); }
//! Is on ground?
bool isOnGround() const { return m_onGroundInfo.getOnGround() == COnGroundInfo::OnGround; }
@@ -210,13 +210,10 @@ namespace swift::misc
const CAltitude &geodeticHeight() const override { return m_position.geodeticHeight(); }
//! \copydoc geo::ICoordinateGeodetic::normalVector
virtual QVector3D normalVector() const override { return m_position.normalVector(); }
QVector3D normalVector() const override { return m_position.normalVector(); }
//! \copydoc geo::ICoordinateGeodetic::normalVectorDouble
virtual std::array<double, 3> normalVectorDouble() const override
{
return m_position.normalVectorDouble();
}
std::array<double, 3> normalVectorDouble() const override { return m_position.normalVectorDouble(); }
//! Elevation of the ground directly beneath
const CAltitude &getGroundElevation() const { return m_groundElevationPlane.getAltitude(); }

View File

@@ -7,8 +7,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CAircraftSituationChange, CA
namespace swift::misc::aviation
{
CAircraftSituationChangeList::CAircraftSituationChangeList() {}
CAircraftSituationChangeList::CAircraftSituationChangeList(const CSequence<CAircraftSituationChange> &other)
: CSequence<CAircraftSituationChange>(other)
{}

View File

@@ -27,7 +27,7 @@ namespace swift::misc::aviation
using CSequence::CSequence;
//! Default constructor.
CAircraftSituationChangeList();
CAircraftSituationChangeList() = default;
//! Construct from a base class object.
CAircraftSituationChangeList(const CSequence<CAircraftSituationChange> &other);

View File

@@ -18,8 +18,6 @@ namespace swift::misc::aviation
const CAngleUnit CAircraftVelocity::c_pbhAngleUnit = CAngleUnit::rad();
const CTimeUnit CAircraftVelocity::c_timeUnit = CTimeUnit::s();
CAircraftVelocity::CAircraftVelocity() = default;
CAircraftVelocity::CAircraftVelocity(double x, double y, double z, CSpeedUnit xyzUnit, double pitch, double roll,
double heading, CAngleUnit pbhAngleUnit, CTimeUnit pbhTimeUnit)
{

View File

@@ -34,7 +34,7 @@ namespace swift::misc::aviation
};
//! Default constructor
CAircraftVelocity();
CAircraftVelocity() = default;
//! Constructor
CAircraftVelocity(double x, double y, double z, physical_quantities::CSpeedUnit xyzUnit, double pitch,

View File

@@ -20,8 +20,6 @@ namespace swift::misc::aviation
return cats;
}
CAirlineIcaoCodeList::CAirlineIcaoCodeList() {}
CAirlineIcaoCodeList::CAirlineIcaoCodeList(const CSequence<CAirlineIcaoCode> &other)
: CSequence<CAirlineIcaoCode>(other)
{}

View File

@@ -38,7 +38,7 @@ namespace swift::misc::aviation
static const QStringList &getLogCategories();
//! Default constructor.
CAirlineIcaoCodeList();
CAirlineIcaoCodeList() = default;
//! Construct from a base class object.
CAirlineIcaoCodeList(const CSequence<CAirlineIcaoCode> &other);

View File

@@ -132,22 +132,20 @@ namespace swift::misc::aviation
bool hasValidIcaoCode() const { return !this->getIcao().isEmpty(); }
//! NULL airport?
virtual bool isNull() const override;
bool isNull() const override;
//! \copydoc geo::ICoordinateGeodetic::latitude
virtual swift::misc::geo::CLatitude latitude() const override { return this->getPosition().latitude(); }
swift::misc::geo::CLatitude latitude() const override { return this->getPosition().latitude(); }
//! \copydoc geo::ICoordinateGeodetic::longitude
virtual swift::misc::geo::CLongitude longitude() const override { return this->getPosition().longitude(); }
swift::misc::geo::CLongitude longitude() const override { return this->getPosition().longitude(); }
//! \copydoc geo::ICoordinateGeodetic::normalVector
virtual QVector3D normalVector() const override { return this->getPosition().normalVector(); }
QVector3D normalVector() const override { return this->getPosition().normalVector(); }
//! \copydoc geo::ICoordinateGeodetic::normalVectorDouble
virtual std::array<double, 3> normalVectorDouble() const override
{
return this->getPosition().normalVectorDouble();
}
std::array<double, 3> normalVectorDouble() const override { return this->getPosition().normalVectorDouble(); }
//! \copydoc swift::misc::mixin::Index::propertyByIndex
QVariant propertyByIndex(swift::misc::CPropertyIndexRef index) const;

View File

@@ -25,7 +25,7 @@ namespace swift::misc::aviation
{
public:
//! Default constructor.
CAirportIcaoCode() {}
CAirportIcaoCode() = default;
//! Constructor
CAirportIcaoCode(const QString &icaoCode) : m_icaoCode(CAirportIcaoCode::unifyAirportCode(icaoCode)) {}

View File

@@ -25,8 +25,6 @@ SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CAtcStation)
namespace swift::misc::aviation
{
CAtcStation::CAtcStation() {}
CAtcStation::CAtcStation(const QString &callsign) : m_callsign(callsign) { m_callsign.setTypeHint(CCallsign::Atc); }
CAtcStation::CAtcStation(const CCallsign &callsign, const CUser &controller, const CFrequency &frequency,

View File

@@ -58,7 +58,7 @@ namespace swift::misc::aviation
};
//! Default constructor.
CAtcStation();
CAtcStation() = default;
//! Simplified constructor
CAtcStation(const QString &callsign);
@@ -202,19 +202,19 @@ namespace swift::misc::aviation
void setLogoffTimeUtc(const QDateTime &logoffTimeUtc) { m_logoffTimeUtc = logoffTimeUtc; }
//! \copydoc geo::ICoordinateGeodetic::latitude
virtual geo::CLatitude latitude() const override;
geo::CLatitude latitude() const override;
//! \copydoc geo::ICoordinateGeodetic::longitude
virtual geo::CLongitude longitude() const override;
geo::CLongitude longitude() const override;
//! \copydoc geo::ICoordinateGeodetic::geodeticHeight
const aviation::CAltitude &geodeticHeight() const override;
//! \copydoc geo::ICoordinateGeodetic::normalVector
virtual QVector3D normalVector() const override;
QVector3D normalVector() const override;
//! \copydoc geo::ICoordinateGeodetic::normalVectorDouble
virtual std::array<double, 3> normalVectorDouble() const override;
std::array<double, 3> normalVectorDouble() const override;
//! \copydoc swift::misc::mixin::Index::propertyByIndex
QVariant propertyByIndex(CPropertyIndexRef index) const;

View File

@@ -19,8 +19,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CAtcStation, CAtcStationList
namespace swift::misc::aviation
{
CAtcStationList::CAtcStationList() {}
CAtcStationList::CAtcStationList(const CSequence<CAtcStation> &other) : CSequence<CAtcStation>(other) {}
CAtcStationList CAtcStationList::findIfComUnitTunedInChannelSpacing(const CComSystem &comUnit) const

View File

@@ -35,7 +35,7 @@ namespace swift::misc::aviation
using CSequence::CSequence;
//! Default constructor.
CAtcStationList();
CAtcStationList() = default;
//! Construct from a base class object.
CAtcStationList(const CSequence<CAtcStation> &other);

View File

@@ -48,7 +48,7 @@ namespace swift::misc
};
//! Default constructor.
CCallsign() {}
CCallsign() = default;
//! Constructor
CCallsign(const QString &callsign, TypeHint hint = NoHint);

View File

@@ -12,8 +12,6 @@ SWIFT_DEFINE_COLLECTION_MIXINS(swift::misc::aviation, CCallsign, CCallsignSet)
namespace swift::misc::aviation
{
CCallsignSet::CCallsignSet() {}
CCallsignSet::CCallsignSet(const QStringList &callsigns, CCallsign::TypeHint typeHint)
{
for (const QString &c : callsigns)

View File

@@ -29,7 +29,7 @@ namespace swift::misc::aviation
public:
//! Default constructor
CCallsignSet();
CCallsignSet() = default;
//! By string list
CCallsignSet(const QStringList &callsigns, CCallsign::TypeHint typeHint = CCallsign::NoHint);

View File

@@ -58,7 +58,7 @@ namespace swift::misc::aviation
};
//! Default constructor
CComSystem() {}
CComSystem() = default;
//! Constructor
CComSystem(const QString &name, const physical_quantities::CFrequency &activeFrequency,

View File

@@ -28,8 +28,6 @@ SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CFlightPlan)
namespace swift::misc::aviation
{
CFlightPlanRemarks::CFlightPlanRemarks() {}
CFlightPlanRemarks::CFlightPlanRemarks(const QString &remarks, bool parse) : m_remarks(cleanRemarks(remarks))
{
if (parse) { this->parseFlightPlanRemarks(); }

View File

@@ -46,7 +46,7 @@ namespace swift::misc::aviation
{
public:
//! Ctor
CFlightPlanRemarks();
CFlightPlanRemarks() = default;
//! Ctor
CFlightPlanRemarks(const QString &remarks, bool parse = true);

View File

@@ -7,7 +7,5 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CFlightPlan, CFlightPlanList
namespace swift::misc::aviation
{
CFlightPlanList::CFlightPlanList() {}
CFlightPlanList::CFlightPlanList(const CSequence<CFlightPlan> &other) : CSequence<CFlightPlan>(other) {}
} // namespace swift::misc::aviation

View File

@@ -29,7 +29,7 @@ namespace swift::misc::aviation
using CSequence::CSequence;
//! Default constructor.
CFlightPlanList();
CFlightPlanList() = default;
//! Construct from a base class object.
CFlightPlanList(const CSequence<CFlightPlan> &other);

View File

@@ -25,8 +25,6 @@ SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::aviation, CLivery)
namespace swift::misc::aviation
{
CLivery::CLivery() {}
CLivery::CLivery(const QString &combinedCode, const CAirlineIcaoCode &airline, const QString &description)
: CLivery(-1, combinedCode, airline, description, "", "", false)
{}

View File

@@ -40,7 +40,7 @@ namespace swift::misc::aviation
};
//! Default constructor.
CLivery();
CLivery() = default;
//! Constructor
CLivery(const QString &combinedCode, const CAirlineIcaoCode &airline, const QString &description);

View File

@@ -12,8 +12,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::aviation, CLivery, CLiveryList)
namespace swift::misc::aviation
{
CLiveryList::CLiveryList() {}
CLiveryList::CLiveryList(const CSequence<CLivery> &other) : CSequence<CLivery>(other) {}
CLiveryList CLiveryList::findByAirlineIcaoDesignator(const QString &icao) const

View File

@@ -32,7 +32,7 @@ namespace swift::misc::aviation
using CSequence::CSequence;
//! Default constructor.
CLiveryList();
CLiveryList() = default;
//! Construct from a base class object.
CLiveryList(const CSequence<CLivery> &other);

View File

@@ -11,8 +11,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc, CCountry, CCountryList)
namespace swift::misc
{
CCountryList::CCountryList() {}
CCountryList::CCountryList(const CSequence<CCountry> &other) : CSequence<CCountry>(other) {}
CCountry CCountryList::findByIsoCode(const QString &isoCode) const

View File

@@ -35,7 +35,7 @@ namespace swift::misc
using CSequence::CSequence;
//! Default constructor.
CCountryList();
CCountryList() = default;
//! Construct from a base class object.
CCountryList(const CSequence<CCountry> &other);

View File

@@ -30,7 +30,7 @@ namespace swift::misc
static CCrashHandler *instance();
//! Destructor
virtual ~CCrashHandler();
~CCrashHandler() override;
//! Initialize and start crashpad handler process
void init();

View File

@@ -351,8 +351,6 @@ namespace swift::misc
: m_basename(basename), m_session(std::make_unique<Session>(m_basename + "/.session"))
{}
CDataCacheRevision::~CDataCacheRevision() = default;
CDataCacheRevision::LockGuard CDataCacheRevision::beginUpdate(const QMap<QString, qint64> &timestamps,
bool updateUuid, bool pinsOnly)
{

View File

@@ -83,7 +83,7 @@ namespace swift::misc
CDataCacheRevision(const QString &basename);
//! Destructor.
~CDataCacheRevision();
~CDataCacheRevision() = default;
//! @{
//! Non-copyable.
@@ -247,7 +247,7 @@ namespace swift::misc
public:
//! Destructor.
virtual ~CDataCache() override;
~CDataCache() override;
//! Return the singleton instance.
static CDataCache *instance();
@@ -297,7 +297,7 @@ namespace swift::misc
void saveToStoreAsync(const swift::misc::CValueCachePacket &values);
void loadFromStoreAsync();
virtual void connectPage(private_ns::CValuePage *page) override;
void connectPage(private_ns::CValuePage *page) override;
QFileSystemWatcher m_watcher;

View File

@@ -16,8 +16,6 @@ SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::db, CArtifact)
namespace swift::misc::db
{
CArtifact::CArtifact() {}
CArtifact::CArtifact(const QString &name, const QString &version, const QString &md5, CArtifact::ArtifactType type,
int size, bool existing, const CPlatform &platform)
: m_name(name.trimmed()), m_md5(md5), m_type(static_cast<int>(type)), m_size(size), m_existing(existing),

View File

@@ -46,7 +46,7 @@ namespace swift::misc::db
};
//! Default constructor
CArtifact();
CArtifact() = default;
//! Constructor
CArtifact(const QString &name, const QString &version, const QString &md5, ArtifactType type, int size,

View File

@@ -11,8 +11,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::db, CArtifact, CArtifactList)
namespace swift::misc::db
{
CArtifactList::CArtifactList() {}
CArtifactList::CArtifactList(const CSequence<CArtifact> &other) : CSequence<CArtifact>(other) {}
CPlatformSet CArtifactList::getPlatforms() const

View File

@@ -32,7 +32,7 @@ namespace swift::misc::db
using CSequence::CSequence;
//! Empty constructor.
CArtifactList();
CArtifactList() = default;
//! Construct from a base class object.
CArtifactList(const CSequence<CArtifact> &other);

View File

@@ -9,8 +9,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::db, CDbInfo, CDbInfoList)
namespace swift::misc::db
{
CDbInfoList::CDbInfoList() {}
CDbInfoList::CDbInfoList(const CSequence<CDbInfo> &other) : CSequence<CDbInfo>(other) {}
CDbInfo CDbInfoList::findFirstByEntityOrDefault(CEntityFlags::Entity entity) const

View File

@@ -30,7 +30,7 @@ namespace swift::misc::db
using CSequence::CSequence;
//! Default constructor.
CDbInfoList();
CDbInfoList() = default;
//! Construct from a base class object.
CDbInfoList(const CSequence<CDbInfo> &other);

View File

@@ -14,8 +14,6 @@ SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::db, CDistribution)
namespace swift::misc::db
{
CDistribution::CDistribution() {}
CDistribution::CDistribution(const QString &channel, int stability, bool restricted)
: m_channel(channel.trimmed().toUpper()), m_stability(stability), m_restricted(restricted)
{}

View File

@@ -36,7 +36,7 @@ namespace swift::misc::db
};
//! Default constructor
CDistribution();
CDistribution() = default;
//! Constructor
CDistribution(const QString &channel, int stability, bool restricted);

View File

@@ -9,8 +9,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::db, CDistribution, CDistributionList)
namespace swift::misc::db
{
CDistributionList::CDistributionList() {}
CDistributionList::CDistributionList(const CSequence<CDistribution> &other) : CSequence<CDistribution>(other) {}
QStringList CDistributionList::getChannels() const

View File

@@ -34,7 +34,7 @@ namespace swift::misc::db
using CSequence::CSequence;
//! Empty constructor.
CDistributionList();
CDistributionList() = default;
//! Construct from a base class object.
CDistributionList(const CSequence<CDistribution> &other);

View File

@@ -32,13 +32,13 @@ namespace swift::misc::db
};
//! Constructor
CUpdateInfo() {}
CUpdateInfo() = default;
//! Constructor
CUpdateInfo(const CArtifactList &artifacts, const CDistributionList &distributions);
//! Destructor.
~CUpdateInfo() {}
~CUpdateInfo() = default;
//! Artifacts (pilot client)
const CArtifactList &getArtifactsPilotClient() const { return m_artifactsPilotClient; }

View File

@@ -60,7 +60,7 @@ namespace swift::misc
CDBusServer(const QString &service, const QString &address, QObject *parent = nullptr);
//! Destructor
virtual ~CDBusServer() override;
~CDBusServer() override;
//! Add a QObject to be exposed via DBus
void addObject(const QString &name, QObject *object);

View File

@@ -276,7 +276,7 @@ namespace swift::misc
}
//! Default constructor.
CDictionary() {}
CDictionary() = default;
//! Initializer list constructor.
CDictionary(std::initializer_list<std::pair<Key, Value>> il) : m_impl(il) {}

View File

@@ -19,8 +19,6 @@ SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::geo, CCoordinateGeodetic)
namespace swift::misc::geo
{
ICoordinateGeodetic::~ICoordinateGeodetic() {}
QString CCoordinateGeodetic::convertToQString(bool i18n) const
{
return ICoordinateGeodetic::convertToQString(i18n);
@@ -525,8 +523,6 @@ namespace swift::misc::geo
ICoordinateGeodetic::convertToQString(i18n);
}
ICoordinateWithRelativePosition::ICoordinateWithRelativePosition() {}
bool ICoordinateWithRelativePosition::canHandleIndex(CPropertyIndexRef index)
{
if (ICoordinateGeodetic::canHandleIndex(index)) { return true; }

View File

@@ -54,7 +54,7 @@ namespace swift::misc
ICoordinateGeodetic() = default;
//! Destructor
virtual ~ICoordinateGeodetic();
virtual ~ICoordinateGeodetic() = default;
//! Copy constructor
ICoordinateGeodetic(const ICoordinateGeodetic &) = default;
@@ -216,7 +216,7 @@ namespace swift::misc
protected:
//! Constructor
ICoordinateWithRelativePosition();
ICoordinateWithRelativePosition() = default;
//! Can given index be handled?
static bool canHandleIndex(CPropertyIndexRef index);
@@ -232,7 +232,7 @@ namespace swift::misc
{
public:
//! Default constructor (null coordinate)
CCoordinateGeodetic() {}
CCoordinateGeodetic() = default;
//! Constructor by normal vector
CCoordinateGeodetic(const QVector3D &normal)
@@ -264,19 +264,19 @@ namespace swift::misc
const physical_quantities::CAngle &relBearing) const;
//! \copydoc ICoordinateGeodetic::latitude
virtual CLatitude latitude() const override;
CLatitude latitude() const override;
//! \copydoc ICoordinateGeodetic::longitude
virtual CLongitude longitude() const override;
CLongitude longitude() const override;
//! \copydoc ICoordinateGeodetic::geodeticHeight
virtual const aviation::CAltitude &geodeticHeight() const override { return m_geodeticHeight; }
const aviation::CAltitude &geodeticHeight() const override { return m_geodeticHeight; }
//! \copydoc ICoordinateGeodetic::normalVector
virtual QVector3D normalVector() const override;
QVector3D normalVector() const override;
//! \copydoc ICoordinateGeodetic::normalVectorDouble
virtual std::array<double, 3> normalVectorDouble() const override;
std::array<double, 3> normalVectorDouble() const override;
//! \copydoc mixin::Index::propertyByIndex
QVariant propertyByIndex(CPropertyIndexRef index) const;
@@ -344,7 +344,7 @@ namespace swift::misc
}
//! Is null?
virtual bool isNull() const override
bool isNull() const override
{
if (m_geodeticHeight.isNull()) { return true; }
return math::CMathUtils::epsilonZeroLimits(m_x) && math::CMathUtils::epsilonZeroLimits(m_y) &&

View File

@@ -12,8 +12,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::geo, CCoordinateGeodetic, CCoordinateG
namespace swift::misc::geo
{
CCoordinateGeodeticList::CCoordinateGeodeticList() {}
CCoordinateGeodeticList::CCoordinateGeodeticList(const CSequence<CCoordinateGeodetic> &other)
: CSequence<CCoordinateGeodetic>(other)
{}

View File

@@ -34,7 +34,7 @@ namespace swift::misc::geo
using CSequence::CSequence;
//! Default constructor.
CCoordinateGeodeticList();
CCoordinateGeodeticList() = default;
//! Construct from a base class object.
CCoordinateGeodeticList(const CSequence<CCoordinateGeodetic> &other);

View File

@@ -33,7 +33,7 @@ namespace swift::misc::geo
};
//! Default constructor
CElevationPlane() {}
CElevationPlane() = default;
//! Plane at given coordinates with range to 2nd coordinate
CElevationPlane(const ICoordinateGeodetic &coordinate, const ICoordinateGeodetic &rangeCoordinate);
@@ -96,7 +96,7 @@ namespace swift::misc::geo
double getAltitudeValue(const physical_quantities::CLengthUnit &unit) const;
//! Existing value?
virtual bool isNull() const override;
bool isNull() const override;
//! Check if elevation is within radius and can be used
//! \remark checks against the set radius

View File

@@ -39,7 +39,7 @@ namespace swift::misc
{
public:
//! Default constructor.
CIcon() {}
CIcon() = default;
//! Constructor.
CIcon(CIcons::IconIndex index);

View File

@@ -31,7 +31,7 @@ namespace swift::misc
public:
//! Constructor
CIconList() {}
CIconList() = default;
//! Construct from a base class object.
CIconList(const CSequence<CIcon> &other);

View File

@@ -11,8 +11,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc, CIdentifier, CIdentifierList)
namespace swift::misc
{
CIdentifierList::CIdentifierList() {}
CIdentifierList::CIdentifierList(const CSequence<CIdentifier> &other) : CSequence<CIdentifier>(other) {}
bool CIdentifierList::containsAnyNotIn(const CIdentifierList &other) const

View File

@@ -27,7 +27,7 @@ namespace swift::misc
using CSequence::CSequence;
//! Default constructor.
CIdentifierList();
CIdentifierList() = default;
//! Construct from a base class object.
CIdentifierList(const CSequence<CIdentifier> &other);

View File

@@ -9,8 +9,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::input, CKeyboardKey, CKeyboardKeyList)
namespace swift::misc::input
{
CKeyboardKeyList::CKeyboardKeyList() {}
CKeyboardKeyList::CKeyboardKeyList(const CSequence<CKeyboardKey> &baseClass) : CSequence<CKeyboardKey>(baseClass) {}
QStringList CKeyboardKeyList::getKeyStrings() const

View File

@@ -29,7 +29,7 @@ namespace swift::misc::input
using CSequence::CSequence;
//! Default constructor
CKeyboardKeyList();
CKeyboardKeyList() = default;
//! Construct from a base class object.
CKeyboardKeyList(const CSequence<CKeyboardKey> &baseClass);

View File

@@ -10,8 +10,6 @@
namespace swift::misc
{
CLogMessage::CLogMessage() = default;
CLogMessage::CLogMessage(const char *file, int line, const char *function) : m_logger(file, line, function) {}
CLogMessage::operator CStatusMessage() { return { m_categories, m_severity, message() }; }

View File

@@ -30,7 +30,7 @@ namespace swift::misc
using CMessageBase::CMessageBase;
//! Construct a message with the "uncategorized" category.
CLogMessage();
CLogMessage() = default;
//! Constructor taking filename, line number, and function name, for uncategorized verbose debug messages.
CLogMessage(const char *file, int line, const char *function);

View File

@@ -9,8 +9,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc, CNameVariantPair, CNameVariantPairList
namespace swift::misc
{
CNameVariantPairList::CNameVariantPairList() {}
CNameVariantPairList::CNameVariantPairList(const CSequence<CNameVariantPair> &other)
: CSequence<CNameVariantPair>(other)
{}

View File

@@ -30,7 +30,7 @@ namespace swift::misc
using CSequence::CSequence;
//! Default constructor.
CNameVariantPairList();
CNameVariantPairList() = default;
//! Construct from a base class object.
CNameVariantPairList(const CSequence<CNameVariantPair> &other);

View File

@@ -15,8 +15,6 @@ SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::network, CAuthenticatedUser)
namespace swift::misc::network
{
CAuthenticatedUser::CAuthenticatedUser() {}
CAuthenticatedUser::CAuthenticatedUser(int id, const QString &realname)
: IDatastoreObjectWithIntegerKey(id), m_realname(realname.trimmed())
{}

View File

@@ -43,7 +43,7 @@ namespace swift::misc::network
};
//! Default constructor.
CAuthenticatedUser();
CAuthenticatedUser() = default;
//! Constructor.
CAuthenticatedUser(int id, const QString &realname);

View File

@@ -9,7 +9,5 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::network, CClient, CClientList)
namespace swift::misc::network
{
CClientList::CClientList() {}
CClientList::CClientList(const CSequence &other) : CSequence<CClient>(other) {}
} // namespace swift::misc::network

View File

@@ -30,7 +30,7 @@ namespace swift::misc::network
using CSequence::CSequence;
//! Default constructor.
CClientList();
CClientList() = default;
//! Construct from a base class object.
CClientList(const CSequence &other);

View File

@@ -88,21 +88,21 @@ namespace swift::misc
{
public:
//! clientprovider
virtual CClientList getClients() const override;
virtual void setClients(const CClientList &clients) override;
virtual void clearClients() override;
virtual CClientList getClientsForCallsigns(const aviation::CCallsignSet &callsigns) const override;
virtual CClient getClientOrDefaultForCallsign(const aviation::CCallsign &callsign) const override;
virtual bool hasClientInfo(const aviation::CCallsign &callsign) const override;
virtual bool addNewClient(const CClient &client) override;
virtual bool setOtherClient(const swift::misc::network::CClient &client) override;
virtual int updateOrAddClient(const aviation::CCallsign &callsign, const CPropertyIndexVariantMap &vm,
bool skipEqualValues = true) override;
virtual int removeClient(const aviation::CCallsign &callsign) override;
virtual bool autoAdjustCientGndCapability(const aviation::CAircraftSituation &situation) override;
virtual bool addClientGndCapability(const aviation::CCallsign &callsign) override;
virtual bool setClientGndCapability(const aviation::CCallsign &callsign, bool supportGndFlag) override;
virtual void markAsSwiftClient(const aviation::CCallsign &callsign) override;
CClientList getClients() const override;
void setClients(const CClientList &clients) override;
void clearClients() override;
CClientList getClientsForCallsigns(const aviation::CCallsignSet &callsigns) const override;
CClient getClientOrDefaultForCallsign(const aviation::CCallsign &callsign) const override;
bool hasClientInfo(const aviation::CCallsign &callsign) const override;
bool addNewClient(const CClient &client) override;
bool setOtherClient(const swift::misc::network::CClient &client) override;
int updateOrAddClient(const aviation::CCallsign &callsign, const CPropertyIndexVariantMap &vm,
bool skipEqualValues = true) override;
int removeClient(const aviation::CCallsign &callsign) override;
bool autoAdjustCientGndCapability(const aviation::CAircraftSituation &situation) override;
bool addClientGndCapability(const aviation::CCallsign &callsign) override;
bool setClientGndCapability(const aviation::CCallsign &callsign, bool supportGndFlag) override;
void markAsSwiftClient(const aviation::CCallsign &callsign) override;
private:
CClientPerCallsign m_clients;

View File

@@ -39,7 +39,7 @@ namespace swift::misc::network
};
//! Default constructor
CEcosystem() {}
CEcosystem() = default;
//! Constructor
CEcosystem(System s) : m_system(static_cast<int>(s)) {}

View File

@@ -7,8 +7,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::network, CEcosystem, CEcosystemList)
namespace swift::misc::network
{
CEcosystemList::CEcosystemList() {}
CEcosystemList::CEcosystemList(const CSequence &other) : CSequence<CEcosystem>(other) {}
QStringList CEcosystemList::allSystemStrings() const

View File

@@ -28,7 +28,7 @@ namespace swift::misc::network
using CSequence::CSequence;
//! Default constructor.
CEcosystemList();
CEcosystemList() = default;
//! Construct from a base class object.
CEcosystemList(const CSequence &other);

View File

@@ -65,7 +65,7 @@ namespace swift::misc::network
//! @}
//! Default constructor.
CFsdSetup() {}
CFsdSetup() = default;
//! Constructor.
CFsdSetup(SendReceiveDetails sendReceive);

View File

@@ -7,8 +7,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::network, CRawFsdMessage, CRawFsdMessag
namespace swift::misc::network
{
CRawFsdMessageList::CRawFsdMessageList() {}
CRawFsdMessageList::CRawFsdMessageList(const CSequence &other) : CSequence<CRawFsdMessage>(other) {}
CRawFsdMessageList CRawFsdMessageList::findByPacketType(const QString &type) const

View File

@@ -31,7 +31,7 @@ namespace swift::misc::network
using CSequence::CSequence;
//! Default constructor.
CRawFsdMessageList();
CRawFsdMessageList() = default;
//! Construct from a base class object.
CRawFsdMessageList(const CSequence &other);

View File

@@ -12,8 +12,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::network, CRemoteFile, CRemoteFileList)
namespace swift::misc::network
{
CRemoteFileList::CRemoteFileList() {}
CRemoteFileList::CRemoteFileList(const CSequence<CRemoteFile> &other) : CSequence<CRemoteFile>(other) {}
QStringList CRemoteFileList::getNames(bool sorted) const

View File

@@ -28,7 +28,7 @@ namespace swift::misc::network
using CSequence::CSequence;
//! Default constructor.
CRemoteFileList();
CRemoteFileList() = default;
//! Construct from a base class object.
CRemoteFileList(const CSequence<CRemoteFile> &other);

View File

@@ -11,8 +11,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::network, CRole, CRoleList)
namespace swift::misc::network
{
CRoleList::CRoleList() {}
bool CRoleList::hasRole(const QString &roleName) const
{
return this->contains(&CRole::getName, roleName.trimmed().toUpper());

View File

@@ -30,7 +30,7 @@ namespace swift::misc::network
using CSequence::CSequence;
//! Default constructor.
CRoleList();
CRoleList() = default;
//! Has role?
bool hasRole(const QString &roleName) const;

View File

@@ -60,7 +60,7 @@ namespace swift::misc::network
static const QString &serverTypeToString(ServerType server);
//! Default constructor.
CServer() {}
CServer() = default;
//! Constructor.
CServer(const QString &name, const QString &description, const QString &address, int port, const CUser &user,

View File

@@ -7,8 +7,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::network, CServer, CServerList)
namespace swift::misc::network
{
CServerList::CServerList() {}
CServerList::CServerList(const CSequence<CServer> &other) : CSequence<CServer>(other) {}
bool CServerList::containsName(const QString &name) const

View File

@@ -26,7 +26,7 @@ namespace swift::misc::network
using CSequence::CSequence;
//! Default constructor.
CServerList();
CServerList() = default;
//! Construct from a base class object.
CServerList(const CSequence<CServer> &other);

View File

@@ -40,7 +40,7 @@ namespace swift::misc::network
};
//! Default constructor.
CTextMessage() {}
CTextMessage() = default;
//! Constructor, radio message
CTextMessage(const QString &message, const physical_quantities::CFrequency &frequency,

View File

@@ -16,8 +16,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::network, CTextMessage, CTextMessageLis
namespace swift::misc::network
{
CTextMessageList::CTextMessageList() {}
CTextMessageList::CTextMessageList(const QString &message, const CCallsign &recipientCallsign)
{
CTextMessage pm(message, recipientCallsign);

View File

@@ -35,7 +35,7 @@ namespace swift::misc::network
using CSequence::CSequence;
//! Default constructor.
CTextMessageList();
CTextMessageList() = default;
//! Constructor, single private message
CTextMessageList(const QString &message, const aviation::CCallsign &recipientCallsign);

View File

@@ -7,8 +7,6 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::network, CUrlLog, CUrlLogList)
namespace swift::misc::network
{
CUrlLogList::CUrlLogList() {}
CUrlLogList::CUrlLogList(const CSequence &other) : CSequence<CUrlLog>(other) {}
int CUrlLogList::addPendingUrl(const CUrl &url, int maxNumber)

View File

@@ -29,7 +29,7 @@ namespace swift::misc::network
using CSequence::CSequence;
//! Default constructor.
CUrlLogList();
CUrlLogList() = default;
//! Construct from a base class object.
CUrlLogList(const CSequence &other);

View File

@@ -7,7 +7,5 @@ SWIFT_DEFINE_SEQUENCE_MIXINS(swift::misc::network, CUser, CUserList)
namespace swift::misc::network
{
CUserList::CUserList() {}
CUserList::CUserList(const CSequence &other) : CSequence<CUser>(other) {}
} // namespace swift::misc::network

View File

@@ -29,7 +29,7 @@ namespace swift::misc::network
using CSequence::CSequence;
//! Default constructor.
CUserList();
CUserList() = default;
//! Construct from a base class object.
CUserList(const CSequence &other);

View File

@@ -13,8 +13,6 @@
namespace swift::misc
{
IOrderable::IOrderable() {}
IOrderable::IOrderable(int order) : m_order(order) {}
QString IOrderable::getOrderAsString() const

View File

@@ -45,7 +45,7 @@ namespace swift::misc
static bool canHandleIndex(CPropertyIndexRef index);
//! Constructor
IOrderable();
IOrderable() = default;
//! Constructor
IOrderable(int order);

View File

@@ -46,7 +46,7 @@ namespace swift::misc
Q_DECLARE_FLAGS(Platform, PlatformFlag)
//! Constructor
CPlatform() {}
CPlatform() = default;
//! Constructor
CPlatform(const QString &p);

Some files were not shown because too many files have changed in this diff Show More