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:
parent
f0c61be711
commit
569e532f5c
@ -50,11 +50,11 @@ struct Completers {
|
||||
|
||||
MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
|
||||
editMode(NONE),
|
||||
modified(false),
|
||||
lastSelectedDive(true),
|
||||
lastTabSelectedDive(0),
|
||||
lastTabSelectedDiveTrip(0),
|
||||
currentTrip(0),
|
||||
modified(false)
|
||||
currentTrip(0)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user