From: "Lubomir I. Ivanov" <[email protected]>

warning: 'ProfileWidget2::someVariableName' will be
initialized after [-Wreorder]

Signed-off-by: Lubomir I. Ivanov <[email protected]>
---
 qt-ui/profile/profilewidget2.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index f0a58a3..6de0e1f 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -61,11 +61,12 @@ static struct _ItemPos {
 } itemPos;
 
 ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
-       dataModel(new DivePlotDataModel(this)),
        currentState(INVALID),
+       dataModel(new DivePlotDataModel(this)),
        zoomLevel(0),
        zoomFactor(1.15),
        background(new DivePixmapItem()),
+       backgroundFile(":poster"),
        toolTipItem(new ToolTipItem()),
        isPlotZoomed(prefs.zoomed_plot),
        profileYAxis(new DepthAxis()),
@@ -88,8 +89,7 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : 
QGraphicsView(parent),
        rulerItem(new RulerItem2()),
        isGrayscale(false),
        printMode(false),
-       shouldCalculateMaxTime(true),
-       backgroundFile(":poster")
+       shouldCalculateMaxTime(true)
 {
        memset(&plotInfo, 0, sizeof(plotInfo));
 
-- 
1.7.11.msysgit.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to