refs #403 add default constructors to CAvionicsBase and CPhysicalQuantity

The rationale behind this is that QtMetaType complains if there
is no default constructor.
This commit is contained in:
Roland Winklmeier
2015-04-10 21:39:08 +02:00
parent 24d6e4bb4e
commit fb5b2e0edf
2 changed files with 9 additions and 0 deletions

View File

@@ -23,6 +23,10 @@ namespace BlackMisc
protected:
QString m_name; //!< name of the unit
//! Default constructor
//! \todo Remove as part of MS' CValueObject refactoring
CAvionicsBase() : m_name("empty") {}
//! \brief Constructor
CAvionicsBase(const QString &name) : m_name(name) {}

View File

@@ -245,6 +245,11 @@ namespace BlackMisc
virtual void setPropertyByIndex(const CVariant &variant, const BlackMisc::CPropertyIndex &index) override;
protected:
//! Default constructor
//! \todo Remove as part of MS' CValueObject refactoring
CPhysicalQuantity() : m_value(0.0), m_unit(MU::nullUnit()) {}
//! Constructor with double
CPhysicalQuantity(double value, const MU &unit);