]> git.siccegge.de Git - frida/frida.git/blobdiff - src/gui/widgets/BasicBlockWidget.hxx
properly include std::array
[frida/frida.git] / src / gui / widgets / BasicBlockWidget.hxx
index dd2fa30208d8a347c1672aed7e94a85a80d421f2..5f225b8b9dd7da33ce31ff905aecdacb97d67788 100644 (file)
@@ -6,6 +6,7 @@
 #include <vector>
 #include <cassert>
 #include <tuple>
+#include <array>
 
 class BasicBlockWidget : public QGraphicsItem
 {
@@ -30,10 +31,10 @@ public:
                return mapToScene(QPointF(width/2, 0));
        }
 
-    std::tuple<QPointF, QPointF, QPointF> getExits() const {
-        return std::make_tuple(mapToScene(QPointF(  width/3, height)),
-                               mapToScene(QPointF(  width/2, height)),
-                               mapToScene(QPointF(2*width/3, height)));
+    std::array<QPointF, 3> getExits() const {
+        return { {  mapToScene(QPointF(  width/3, height)),
+                                       mapToScene(QPointF(  width/2, height)),
+                                       mapToScene(QPointF(2*width/3, height)) } };
     }
 
     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,