mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-07 20:44:35 +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),
|
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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue