diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-12-19 23:05:42 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-12-21 00:04:30 +0100 |
commit | 1c1ca8c1c7a85938f41efb6b1ae2fa50a7f778a7 (patch) | |
tree | 1a6c0850412195125814d01c5d85f49e759b0045 | |
parent | 1fee77487b5cf1ebdc17c994ecaa45dd6f574842 (diff) | |
download | subsurface-1c1ca8c1c7a85938f41efb6b1ae2fa50a7f778a7.tar.gz |
Fix order of initilization list in MainTab constructor.
Besides being the right thing to do (code reflects reality), it
silences a compiler warning.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index c45474e7e..ea78e0264 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -44,9 +44,9 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), cylindersModel(new CylindersModel(this)), editMode(NONE), copyPaste(false), - currentTrip(0), lastTabSelectedDive(0), - lastTabSelectedDiveTrip(0) + lastTabSelectedDiveTrip(0), + currentTrip(0) { ui.setupUi(this); |