mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:43:24 +00:00
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>
This commit is contained in:
parent
b1d1c88822
commit
0325b267ee
3 changed files with 5 additions and 5 deletions
|
@ -64,9 +64,9 @@ DiveCartesianAxis::DiveCartesianAxis() : QObject(),
|
||||||
max(0),
|
max(0),
|
||||||
interval(1),
|
interval(1),
|
||||||
tick_size(0),
|
tick_size(0),
|
||||||
labelScale(1.0),
|
|
||||||
textVisibility(true),
|
textVisibility(true),
|
||||||
lineVisibility(true),
|
lineVisibility(true),
|
||||||
|
labelScale(1.0),
|
||||||
line_size(1)
|
line_size(1)
|
||||||
{
|
{
|
||||||
setPen(gridPen());
|
setPen(gridPen());
|
||||||
|
|
|
@ -61,6 +61,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
|
||||||
zoomLevel(0),
|
zoomLevel(0),
|
||||||
background(new DivePixmapItem()),
|
background(new DivePixmapItem()),
|
||||||
toolTipItem(new ToolTipItem()),
|
toolTipItem(new ToolTipItem()),
|
||||||
|
isPlotZoomed(prefs.zoomed_plot),
|
||||||
profileYAxis(new DepthAxis()),
|
profileYAxis(new DepthAxis()),
|
||||||
gasYAxis(new PartialGasPressureAxis()),
|
gasYAxis(new PartialGasPressureAxis()),
|
||||||
temperatureAxis(new TemperatureAxis()),
|
temperatureAxis(new TemperatureAxis()),
|
||||||
|
@ -78,7 +79,6 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
|
||||||
po2GasItem(new PartialPressureGasItem()),
|
po2GasItem(new PartialPressureGasItem()),
|
||||||
heartBeatAxis(new DiveCartesianAxis()),
|
heartBeatAxis(new DiveCartesianAxis()),
|
||||||
heartBeatItem(new DiveHeartrateItem()),
|
heartBeatItem(new DiveHeartrateItem()),
|
||||||
isPlotZoomed(prefs.zoomed_plot),
|
|
||||||
rulerItem(new RulerItem2())
|
rulerItem(new RulerItem2())
|
||||||
{
|
{
|
||||||
memset(&plotInfo, 0, sizeof(plotInfo));
|
memset(&plotInfo, 0, sizeof(plotInfo));
|
||||||
|
|
|
@ -64,10 +64,10 @@ QVariant RulerNodeItem2::itemChange(GraphicsItemChange change, const QVariant &v
|
||||||
return QGraphicsEllipseItem::itemChange(change, value);
|
return QGraphicsEllipseItem::itemChange(change, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
RulerItem2::RulerItem2() : timeAxis(NULL),
|
RulerItem2::RulerItem2() : source(new RulerNodeItem2()),
|
||||||
depthAxis(NULL),
|
|
||||||
source(new RulerNodeItem2()),
|
|
||||||
dest(new RulerNodeItem2()),
|
dest(new RulerNodeItem2()),
|
||||||
|
timeAxis(NULL),
|
||||||
|
depthAxis(NULL),
|
||||||
textItem(new QGraphicsSimpleTextItem(this))
|
textItem(new QGraphicsSimpleTextItem(this))
|
||||||
{
|
{
|
||||||
memset(&pInfo, 0, sizeof(pInfo));
|
memset(&pInfo, 0, sizeof(pInfo));
|
||||||
|
|
Loading…
Add table
Reference in a new issue