aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-11-30 13:07:59 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-30 07:21:24 -0800
commit047e1cf013762015ccb7b16126545e5a4c69dbdf (patch)
tree927c15b7fbdc65542a25b4542245090f20d60aba
parent10a43af06697cf7f2be36390bd052733fa3b4a76 (diff)
downloadsubsurface-047e1cf013762015ccb7b16126545e5a4c69dbdf.tar.gz
Reorder initializers to be more c++-strict
c++ have some idea about in what order things should be initialized. This makes us comply with that order. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/profilegraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 9192f4973..79ebc2684 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -1604,7 +1604,7 @@ QColor EventItem::getColor(const color_indice_t i)
return profile_color[i].at((isGrayscale) ? 1 : 0);
}
-EventItem::EventItem(struct event *ev, QGraphicsItem* parent, bool grayscale): QGraphicsPolygonItem(parent), isGrayscale(grayscale), ev(ev)
+EventItem::EventItem(struct event *ev, QGraphicsItem* parent, bool grayscale): QGraphicsPolygonItem(parent), ev(ev), isGrayscale(grayscale)
{
setFlag(ItemIgnoresTransformations);
setFlag(ItemIsFocusable);