mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Fixed -Wdelete-non-virtual-dtor warnings arising out of the removal of CAvionicsBase.
This commit is contained in:
@@ -165,6 +165,9 @@ namespace BlackMisc
|
||||
CModulator<AVIO>::CModulator(const QString &name, const BlackMisc::PhysicalQuantities::CFrequency &activeFrequency, const BlackMisc::PhysicalQuantities::CFrequency &standbyFrequency) :
|
||||
m_name(name), m_frequencyActive(activeFrequency), m_frequencyStandby(standbyFrequency) {}
|
||||
|
||||
template <class AVIO>
|
||||
CModulator<AVIO>::~CModulator() {}
|
||||
|
||||
template <class AVIO>
|
||||
QString CModulator<AVIO>::convertToQString(bool i18n) const
|
||||
{
|
||||
|
||||
@@ -95,6 +95,9 @@ namespace BlackMisc
|
||||
//! Constructor
|
||||
CModulator(const QString &name, const BlackMisc::PhysicalQuantities::CFrequency &activeFrequency, const BlackMisc::PhysicalQuantities::CFrequency &standbyFrequency);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CModulator();
|
||||
|
||||
//! Set active frequency
|
||||
void setFrequencyActiveKHz(double frequencyKHz);
|
||||
|
||||
|
||||
@@ -166,11 +166,10 @@ namespace BlackMisc
|
||||
//! \copydoc CValueObject::convertToQString
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
protected:
|
||||
//! Default value?
|
||||
virtual bool isDefaultValue() const { return this->m_transponderCode == 0; }
|
||||
|
||||
private:
|
||||
//! Default value?
|
||||
bool isDefaultValue() const { return this->m_transponderCode == 0; }
|
||||
|
||||
BLACK_ENABLE_TUPLE_CONVERSION(CTransponder)
|
||||
int m_transponderCode; //!< Transponder code
|
||||
TransponderMode m_transponderMode; //!< Transponder mode
|
||||
|
||||
Reference in New Issue
Block a user