Cleanup: Fix order of initialization in MainTab::MainTab()

For deterministic construction/destruction (i.e. objects are
destructed in reverse order of construction) it is crucial that
constructor initializer lists follow the order of the class
definition.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-12-04 08:15:20 +01:00 committed by bstoeger
parent f0c61be711
commit 569e532f5c

View file

@ -50,11 +50,11 @@ struct Completers {
MainTab::MainTab(QWidget *parent) : QTabWidget(parent), MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
editMode(NONE), editMode(NONE),
modified(false),
lastSelectedDive(true), lastSelectedDive(true),
lastTabSelectedDive(0), lastTabSelectedDive(0),
lastTabSelectedDiveTrip(0), lastTabSelectedDiveTrip(0),
currentTrip(0), currentTrip(0)
modified(false)
{ {
ui.setupUi(this); ui.setupUi(this);