summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--labb4/Junk.h2
-rw-r--r--labb4/Robot.h2
-rw-r--r--labb4/Unit.h1
3 files changed, 3 insertions, 2 deletions
diff --git a/labb4/Junk.h b/labb4/Junk.h
index 8e3c357..2483233 100644
--- a/labb4/Junk.h
+++ b/labb4/Junk.h
@@ -13,7 +13,7 @@ class Junk : public Robot {
public:
Junk();
Junk(Robot c);
- ~Junk() {}
+ ~Junk() = default;
/*
* Draws this junk onto the given QGraphicsScene.
diff --git a/labb4/Robot.h b/labb4/Robot.h
index 224b742..74ad592 100644
--- a/labb4/Robot.h
+++ b/labb4/Robot.h
@@ -12,7 +12,7 @@
class Robot : public Unit {
public:
Robot();
- virtual ~Robot() {};
+ virtual ~Robot() = default;
virtual void draw(QGraphicsScene* scene) const;
/*
diff --git a/labb4/Unit.h b/labb4/Unit.h
index 65e5db0..b092e39 100644
--- a/labb4/Unit.h
+++ b/labb4/Unit.h
@@ -16,6 +16,7 @@ public:
Unit();
Unit(const Unit& u);
Unit(const Point& p);
+ virtual ~Unit() = default;
/*
* Return Point representation of Unit