summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-03-10 13:43:43 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-10 09:01:58 -0700
commit0325b267ee540c4b3ea2103bdfe54e43029556bc (patch)
treefded35553feaf3e14aaa526876a9cfb54082c1fa /qt-ui/profile/profilewidget2.cpp
parentb1d1c8882207049af73f4dc4bc8ef071c97c881a (diff)
downloadsubsurface-0325b267ee540c4b3ea2103bdfe54e43029556bc.tar.gz
Profile2: fix some initializer list order warnings
Such can be disabled with -Wno-reorder and are clearly more of a nuisance, but C++98 12.6.2.5 says the order should be the same as in the class declaration. On theory this would only speed the compile times a tiny amount. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 990e2489f..88f93785b 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -61,6 +61,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
zoomLevel(0),
background(new DivePixmapItem()),
toolTipItem(new ToolTipItem()),
+ isPlotZoomed(prefs.zoomed_plot),
profileYAxis(new DepthAxis()),
gasYAxis(new PartialGasPressureAxis()),
temperatureAxis(new TemperatureAxis()),
@@ -78,7 +79,6 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
po2GasItem(new PartialPressureGasItem()),
heartBeatAxis(new DiveCartesianAxis()),
heartBeatItem(new DiveHeartrateItem()),
- isPlotZoomed(prefs.zoomed_plot),
rulerItem(new RulerItem2())
{
memset(&plotInfo, 0, sizeof(plotInfo));