[PATCH] Reorder initializers to be more c++-strict
Anton Lundin
glance at acc.umu.se
Sat Nov 30 04:07:59 UTC 2013
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 at acc.umu.se>
---
qt-ui/profilegraphics.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 6e31fcf..d755182 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -1603,7 +1603,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);
--
1.8.3.2
More information about the subsurface
mailing list