[license] Fix compiler warnings

- out-of-order and incomplete initialization
 - documentation style
 - missing assignment operator
This commit is contained in:
Adriaan de Groot 2019-04-25 14:15:14 +02:00
parent 516b3b4b6c
commit a68a381481
2 changed files with 4 additions and 2 deletions

View File

@ -87,8 +87,9 @@ LicenseEntry::isLocal() const
LicensePage::LicensePage(QWidget *parent)
: QWidget( parent )
, ui( new Ui::LicensePage )
, m_isNextEnabled( false )
, m_allLicensesOptional( false )
, ui( new Ui::LicensePage )
{
ui->setupUi( this );

View File

@ -51,6 +51,7 @@ struct LicenseEntry
LicenseEntry( const QVariantMap& conf );
LicenseEntry( const LicenseEntry& ) = default;
LicenseEntry& operator=( const LicenseEntry& ) = default;
bool isValid() const { return !m_id.isEmpty(); }
bool isRequired() const { return m_required; }
@ -94,7 +95,7 @@ private:
void updateGlobalStorage( bool v );
bool m_isNextEnabled;
bool m_allLicensesOptional; //< all the licenses passed to setEntries are not-required
bool m_allLicensesOptional; ///< @brief all the licenses passed to setEntries are not-required
Ui::LicensePage* ui;
QList< LicenseWidget* > m_entries;