fix Warning

This commit is contained in:
berrux-dev committed 2026-10-03 09:20:13 +02:00
1 parent 593c221d23
commit 8345470273
316 files changed
+1246 -929

No files matched your search

@@ -241,7 +241,7 @@ bool get(const QJsonObject &obj, const QString &key, std::vector<unsigned char>
template <>
bool get(const QJsonObject &obj, const QString &key, VulnerabilityState &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
val = static_cast<VulnerabilityState>(iVal);
@@ -253,7 +253,7 @@ bool get(const QJsonObject &obj, const QString &key, VulnerabilityState &val, bo
template <>
bool get(const QJsonObject &obj, const QString &key, OriginatorType &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<OriginatorType>(iVal))
{
@@ -275,7 +275,7 @@ bool get(const QJsonObject &obj, const QString &key, OriginatorType &val, bool b
template <>
bool get(const QJsonObject &obj, const QString &key, FunctionalAreaOperatingMode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<FunctionalAreaOperatingMode>(iVal))
{
@@ -291,7 +291,7 @@ bool get(const QJsonObject &obj, const QString &key, FunctionalAreaOperatingMode
template <>
bool get(const QJsonObject &obj, const QString &key, Language &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<Language>(iVal))
{
@@ -311,7 +311,7 @@ bool get(const QJsonObject &obj, const QString &key, Language &val, bool bOption
template <>
bool get(const QJsonObject &obj, const QString &key, ParticipantLicenseState &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ParticipantLicenseState>(iVal))
{
@@ -328,7 +328,7 @@ bool get(const QJsonObject &obj, const QString &key, ParticipantLicenseState &va
template <>
bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationReport::MineHandgrenadeSensorMode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<EquipmentConfigurationReport::MineHandgrenadeSensorMode>(iVal))
{
@@ -344,7 +344,7 @@ bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationRepor
template <>
bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationReport::FirMode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<EquipmentConfigurationReport::FirMode>(iVal))
{
@@ -360,7 +360,7 @@ bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationRepor
template <>
bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationReport::MineLayerMode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<EquipmentConfigurationReport::MineLayerMode>(iVal))
{
@@ -376,7 +376,7 @@ bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationRepor
template <>
bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationReport::SpecialSensorStandardMode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<EquipmentConfigurationReport::SpecialSensorStandardMode>(iVal))
{
@@ -394,7 +394,7 @@ bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationRepor
template <>
bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationReport::AgdusHwMode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<EquipmentConfigurationReport::AgdusHwMode>(iVal))
{
@@ -410,7 +410,7 @@ bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationRepor
template <>
bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationReport::PositionUpdateInterval &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<EquipmentConfigurationReport::PositionUpdateInterval>(iVal))
{
@@ -426,7 +426,7 @@ bool get(const QJsonObject &obj, const QString &key, EquipmentConfigurationRepor
template <>
bool get(const QJsonObject &obj, const QString &key, CtaDataError::Reason &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<CtaDataError::Reason>(iVal))
{
@@ -460,7 +460,7 @@ bool get(const QJsonObject &obj, const QString &key, CtaDataError::Reason &val,
template <>
bool get(const QJsonObject &obj, const QString &key, CreateCContamination::Volatiliy &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<CreateCContamination::Volatiliy>(iVal))
{
@@ -475,7 +475,7 @@ bool get(const QJsonObject &obj, const QString &key, CreateCContamination::Volat
template <>
bool get(const QJsonObject &obj, const QString &key, AreaEffectSimulationType &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<AreaEffectSimulationType>(iVal))
{
@@ -503,7 +503,7 @@ bool get(const QJsonObject &obj, const QString &key, AreaEffectSimulationType &v
template <>
bool get(const QJsonObject &obj, const QString &key, IedType &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<IedType>(iVal))
{
@@ -519,7 +519,7 @@ bool get(const QJsonObject &obj, const QString &key, IedType &val, bool bOptiona
template <>
bool get(const QJsonObject &obj, const QString &key, IedPairingState &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<IedPairingState>(iVal))
{
@@ -535,7 +535,7 @@ bool get(const QJsonObject &obj, const QString &key, IedPairingState &val, bool
template <>
bool get(const QJsonObject &obj, const QString &key, IedTacticalState &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<IedTacticalState>(iVal))
{
@@ -557,7 +557,7 @@ bool get(const QJsonObject &obj, const QString &key, IedTacticalState &val, bool
template <>
bool get(const QJsonObject &obj, const QString &key, IedError &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<IedError>(iVal))
{
@@ -572,7 +572,7 @@ bool get(const QJsonObject &obj, const QString &key, IedError &val, bool bOption
template <>
bool get(const QJsonObject &obj, const QString &key, MinelayerThrowerData::ThrowingType &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<MinelayerThrowerData::ThrowingType>(iVal))
{
@@ -592,7 +592,7 @@ bool get(const QJsonObject &obj, const QString &key, MinelayerThrowerData::Throw
template <>
bool get(const QJsonObject &obj, const QString &key, OpaquePayloadDataBase::Type &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<OpaquePayloadDataBase::Type>(iVal))
{
@@ -609,7 +609,7 @@ bool get(const QJsonObject &obj, const QString &key, OpaquePayloadDataBase::Type
template <>
bool get(const QJsonObject &obj, const QString &key, TechnicalArea::Type &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<TechnicalArea::Type>(iVal))
{
@@ -628,7 +628,7 @@ bool get(const QJsonObject &obj, const QString &key, TechnicalArea::Type &val, b
template <>
bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::OperationMode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ParticipantModeBase::OperationMode>(iVal))
{
@@ -644,7 +644,7 @@ bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::Operat
template <>
bool get(const QJsonObject &obj, const QString &key, BiteReport::LoginType &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<BiteReport::LoginType>(iVal))
{
@@ -661,7 +661,7 @@ bool get(const QJsonObject &obj, const QString &key, BiteReport::LoginType &val,
template <>
bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::WphMode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ParticipantModeBase::WphMode>(iVal))
{
@@ -677,7 +677,7 @@ bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::WphMod
template <>
bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::PersonellProtection &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ParticipantModeBase::PersonellProtection>(iVal))
{
@@ -694,7 +694,7 @@ bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::Person
template <>
bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::ProtectionLevel &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ParticipantModeBase::ProtectionLevel>(iVal))
{
@@ -713,7 +713,7 @@ bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::Protec
template <>
bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::HandgrenadeSearchMode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ParticipantModeBase::HandgrenadeSearchMode>(iVal))
{
@@ -729,7 +729,7 @@ bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::Handgr
template <>
bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::InternationalMode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ParticipantModeBase::InternationalMode>(iVal))
{
@@ -745,7 +745,7 @@ bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::Intern
template <>
bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::ABCProtectionMode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ParticipantModeBase::ABCProtectionMode>(iVal))
{
@@ -761,7 +761,7 @@ bool get(const QJsonObject &obj, const QString &key, ParticipantModeBase::ABCPro
template <>
bool get(const QJsonObject &obj, const QString &key, ParticipantConfigurationBase::FaultPositionHandling &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ParticipantConfigurationBase::FaultPositionHandling>(iVal))
{
@@ -778,7 +778,7 @@ bool get(const QJsonObject &obj, const QString &key, ParticipantConfigurationBas
template <>
bool get(const QJsonObject &obj, const QString &key, ParticipantConfigurationBase::SwitchingPositionIntervall &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ParticipantConfigurationBase::SwitchingPositionIntervall>(iVal))
{
@@ -794,7 +794,7 @@ bool get(const QJsonObject &obj, const QString &key, ParticipantConfigurationBas
template <>
bool get(const QJsonObject &obj, const QString &key, ParticipantConfigurationBase::OpticalCode &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ParticipantConfigurationBase::OpticalCode>(iVal))
{
@@ -811,7 +811,7 @@ bool get(const QJsonObject &obj, const QString &key, ParticipantConfigurationBas
template <>
bool get(const QJsonObject &obj, const QString &key, SanitationResult &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<SanitationResult>(iVal))
{
@@ -829,7 +829,7 @@ bool get(const QJsonObject &obj, const QString &key, SanitationResult &val, bool
template <>
bool get(const QJsonObject &obj, const QString &key, SanitationEvaluation &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<SanitationEvaluation>(iVal))
{
@@ -846,7 +846,7 @@ bool get(const QJsonObject &obj, const QString &key, SanitationEvaluation &val,
template <>
bool get(const QJsonObject &obj, const QString &key, Qualification &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<Qualification>(iVal))
{
@@ -863,7 +863,7 @@ bool get(const QJsonObject &obj, const QString &key, Qualification &val, bool bO
template <>
bool get(const QJsonObject &obj, const QString &key, SanitationRepair::TreatmentResult &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<SanitationRepair::TreatmentResult>(iVal))
{
@@ -880,7 +880,7 @@ bool get(const QJsonObject &obj, const QString &key, SanitationRepair::Treatment
template <>
bool get(const QJsonObject &obj, const QString &key, ExerciseStateData::ExerciseState &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ExerciseStateData::ExerciseState>(iVal))
{
@@ -899,7 +899,7 @@ bool get(const QJsonObject &obj, const QString &key, ExerciseStateData::Exercise
template <>
bool get(const QJsonObject &obj, const QString &key, ServiceControlEnum &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<ServiceControlEnum>(iVal))
{
@@ -916,7 +916,7 @@ bool get(const QJsonObject &obj, const QString &key, ServiceControlEnum &val, bo
template <>
bool get(const QJsonObject &obj, const QString &key, PowerMethod &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<PowerMethod>(iVal))
{
@@ -933,7 +933,7 @@ bool get(const QJsonObject &obj, const QString &key, PowerMethod &val, bool bOpt
template <>
bool get(const QJsonObject &obj, const QString &key, UAVActionTask &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<UAVActionTask>(iVal))
{
@@ -944,6 +944,7 @@ bool get(const QJsonObject &obj, const QString &key, UAVActionTask &val, bool bO
case UAVActionTask::Connect:
case UAVActionTask::Loiter:
case UAVActionTask::Return:
case UAVActionTask::Observe:
val = static_cast<UAVActionTask>(iVal);
return true;
}
@@ -953,7 +954,7 @@ bool get(const QJsonObject &obj, const QString &key, UAVActionTask &val, bool bO
template <>
bool get(const QJsonObject &obj, const QString &key, UAVRadioLinkConnectionStatusType &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<UAVRadioLinkConnectionStatusType>(iVal))
{
@@ -972,7 +973,7 @@ bool get(const QJsonObject &obj, const QString &key, UAVRadioLinkConnectionStatu
template <>
bool get(const QJsonObject &obj, const QString &key, UAVState &val, bool bOptional)
{
int iVal;
int iVal = 0;
get(obj, key, iVal, bOptional);
switch (static_cast<UAVState>(iVal))
{