From a21464d98d42dca8f91949cc372fbccabd8c96a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 8 Mar 2018 00:57:09 +0100 Subject: [PATCH] Added missing virtual destructors --- src/GUI/graphitem.h | 1 + src/GUI/graphtab.h | 1 + src/map/map.h | 1 + 3 files changed, 3 insertions(+) diff --git a/src/GUI/graphitem.h b/src/GUI/graphitem.h index edfbdefb..3608e6bd 100644 --- a/src/GUI/graphitem.h +++ b/src/GUI/graphitem.h @@ -12,6 +12,7 @@ class GraphItem : public QGraphicsObject public: GraphItem(const Graph &graph, GraphType type, QGraphicsItem *parent = 0); + virtual ~GraphItem() {} QPainterPath shape() const {return _shape;} QRectF boundingRect() const {return _shape.boundingRect();} diff --git a/src/GUI/graphtab.h b/src/GUI/graphtab.h index e0748dcb..558c4d87 100644 --- a/src/GUI/graphtab.h +++ b/src/GUI/graphtab.h @@ -16,6 +16,7 @@ class GraphTab : public GraphView public: GraphTab(QWidget *parent = 0) : GraphView(parent) {setFrameShape(QFrame::NoFrame);} + virtual ~GraphTab() {} virtual QString label() const = 0; virtual void loadData(const Data &data, const QList &paths) = 0; diff --git a/src/map/map.h b/src/map/map.h index 22c04f0a..134c3e47 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -16,6 +16,7 @@ class Map : public QObject public: Map(QObject *parent = 0) : QObject(parent), _backgroundColor(Qt::white) {} + virtual ~Map() {} virtual const QString &name() const = 0;