Reorder initializers to be more c++-strict

c++ have some idea about in what order things should be initialized.
This makes us comply with that order.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2014-11-08 14:11:06 +01:00 committed by Dirk Hohndel
parent 082e59ea72
commit 0b0e5d834f
2 changed files with 6 additions and 6 deletions

View file

@ -35,8 +35,8 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
extraDataModel(new ExtraDataModel(this)), extraDataModel(new ExtraDataModel(this)),
editMode(NONE), editMode(NONE),
divePictureModel(DivePictureModel::instance()), divePictureModel(DivePictureModel::instance()),
currentTrip(0), copyPaste(false),
copyPaste(false) currentTrip(0)
{ {
ui.setupUi(this); ui.setupUi(this);
ui.dateEdit->setDisplayFormat(getDateFormat()); ui.dateEdit->setDisplayFormat(getDateFormat());

View file

@ -72,8 +72,8 @@ const QPixmap &trashIcon()
} }
CylindersModel::CylindersModel(QObject *parent) : CylindersModel::CylindersModel(QObject *parent) :
rows(0), changed(false),
changed(false) rows(0)
{ {
// enum {REMOVE, TYPE, SIZE, WORKINGPRESS, START, END, O2, HE, DEPTH}; // enum {REMOVE, TYPE, SIZE, WORKINGPRESS, START, END, O2, HE, DEPTH};
setHeaderDataStrings(QStringList() << "" << tr("Type") << tr("Size") << tr("Work press.") << tr("Start press.") << tr("End press.") << trUtf8("O" UTF8_SUBSCRIPT_2 "%") << tr("He%") setHeaderDataStrings(QStringList() << "" << tr("Type") << tr("Size") << tr("Work press.") << tr("Start press.") << tr("End press.") << trUtf8("O" UTF8_SUBSCRIPT_2 "%") << tr("He%")
@ -414,8 +414,8 @@ void CylindersModel::remove(const QModelIndex &index)
} }
WeightModel::WeightModel(QObject *parent) : CleanerTableModel(parent), WeightModel::WeightModel(QObject *parent) : CleanerTableModel(parent),
rows(0), changed(false),
changed(false) rows(0)
{ {
//enum Column {REMOVE, TYPE, WEIGHT}; //enum Column {REMOVE, TYPE, WEIGHT};
setHeaderDataStrings(QStringList() << tr("") << tr("Type") << tr("Weight")); setHeaderDataStrings(QStringList() << tr("") << tr("Type") << tr("Weight"));