aboutsummaryrefslogtreecommitdiff
path: root/week10
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-05-08 19:23:21 +0300
committerSyndamia <kamen@syndamia.com>2024-05-08 19:23:21 +0300
commiteab36a79b85b59fbbff75bf0dd748f877e94962e (patch)
tree76204f59107ee79c33ab7d4cc00d59dfe242106b /week10
parent75cff007b4896eed49b758be0959668673ae1bf3 (diff)
downloadoop-2023-solutions-eab36a79b85b59fbbff75bf0dd748f877e94962e.tar
oop-2023-solutions-eab36a79b85b59fbbff75bf0dd748f877e94962e.tar.gz
oop-2023-solutions-eab36a79b85b59fbbff75bf0dd748f877e94962e.zip
[w10] Added forgotten virtual keyword to certain destructors
Diffstat (limited to 'week10')
-rw-r--r--week10/Exercise07/FileString.h.gchbin0 -> 2068739 bytes
-rw-r--r--week10/Exercise07/String.h2
-rw-r--r--week10/Exercise08/Moderator.h2
-rw-r--r--week10/Exercise08/User.h2
-rw-r--r--week10/Exercise10/String.h2
5 files changed, 4 insertions, 4 deletions
diff --git a/week10/Exercise07/FileString.h.gch b/week10/Exercise07/FileString.h.gch
new file mode 100644
index 0000000..09aa698
--- /dev/null
+++ b/week10/Exercise07/FileString.h.gch
Binary files differ
diff --git a/week10/Exercise07/String.h b/week10/Exercise07/String.h
index 3ea986a..c622f5b 100644
--- a/week10/Exercise07/String.h
+++ b/week10/Exercise07/String.h
@@ -12,7 +12,7 @@ public:
String(const char* str);
String();
- ~String();
+ virtual ~String();
String(const String& other);
String& operator=(const String& other);
String(String&& other);
diff --git a/week10/Exercise08/Moderator.h b/week10/Exercise08/Moderator.h
index 70296a4..2945ae7 100644
--- a/week10/Exercise08/Moderator.h
+++ b/week10/Exercise08/Moderator.h
@@ -10,7 +10,7 @@ protected:
public:
Moderator();
- ~Moderator();
+ virtual ~Moderator();
Moderator(const Moderator& other);
Moderator& operator=(const Moderator& other);
Moderator(Moderator&& other);
diff --git a/week10/Exercise08/User.h b/week10/Exercise08/User.h
index 81a5fed..b6055a1 100644
--- a/week10/Exercise08/User.h
+++ b/week10/Exercise08/User.h
@@ -10,7 +10,7 @@ protected:
public:
User();
- ~User();
+ virtual ~User();
User(const User& other);
User& operator=(const User& other);
User(User&& other);
diff --git a/week10/Exercise10/String.h b/week10/Exercise10/String.h
index 4ae55c0..d63bf96 100644
--- a/week10/Exercise10/String.h
+++ b/week10/Exercise10/String.h
@@ -9,7 +9,7 @@ protected:
public:
String();
- ~String();
+ virtual ~String();
String(const String& other);
String& operator=(const String& other);
String(String&& other);