aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-06-08 08:48:05 -0400
committerPaul Gilbert2015-06-08 08:48:05 -0400
commitaa0dd080dd0e16124a7cba538c5bee0e63534946 (patch)
tree8cd0e61120459ff7ed1336c9552467a7f07503bf
parentf5a1b626b710c368e79ab27c13cf2be4ccdcb30f (diff)
downloadscummvm-rg350-aa0dd080dd0e16124a7cba538c5bee0e63534946.tar.gz
scummvm-rg350-aa0dd080dd0e16124a7cba538c5bee0e63534946.tar.bz2
scummvm-rg350-aa0dd080dd0e16124a7cba538c5bee0e63534946.zip
SHERLOCK: Add virtual destructors to Map classes
-rw-r--r--engines/sherlock/map.h1
-rw-r--r--engines/sherlock/scalpel/scalpel_map.h1
-rw-r--r--engines/sherlock/tattoo/tattoo_map.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/engines/sherlock/map.h b/engines/sherlock/map.h
index 2569e18187..104f5e9c8a 100644
--- a/engines/sherlock/map.h
+++ b/engines/sherlock/map.h
@@ -43,6 +43,7 @@ public:
bool _frameChangeFlag;
public:
static Map *init(SherlockEngine *vm);
+ virtual ~Map() {}
/**
* Show the map
diff --git a/engines/sherlock/scalpel/scalpel_map.h b/engines/sherlock/scalpel/scalpel_map.h
index e61375f116..b17677725c 100644
--- a/engines/sherlock/scalpel/scalpel_map.h
+++ b/engines/sherlock/scalpel/scalpel_map.h
@@ -146,6 +146,7 @@ protected:
void highlightIcon(const Common::Point &pt);
public:
ScalpelMap(SherlockEngine *vm);
+ virtual ~ScalpelMap() {}
const MapEntry &operator[](int idx) { return _points[idx]; }
diff --git a/engines/sherlock/tattoo/tattoo_map.h b/engines/sherlock/tattoo/tattoo_map.h
index 15dd90e78a..750cd90c3b 100644
--- a/engines/sherlock/tattoo/tattoo_map.h
+++ b/engines/sherlock/tattoo/tattoo_map.h
@@ -35,6 +35,7 @@ namespace Tattoo {
class TattooMap : public Map {
public:
TattooMap(SherlockEngine *vm) : Map(vm) {}
+ virtual ~TattooMap() {}
/**
* Show the map