mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 18:33:23 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue