summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-11-10 15:33:34 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-11-10 15:33:34 +0100
commitc3028edebab1d021d2d95a26beea3ccd58a4e28f (patch)
tree9a5b5410bf77ff475e4711f6307cb8bac8c1c4c7
parentde4e4f7694bb4ba07f543b214c67b85f0a3f0d49 (diff)
downloadtddd86-c3028edebab1d021d2d95a26beea3ccd58a4e28f.tar.gz
default destructors
-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