aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-24 10:58:00 -0400
committerPaul Gilbert2015-05-24 10:58:00 -0400
commit79f11bd381b468a8fcca860ee3c2232606324fa5 (patch)
tree09a99193c463f293724e341dc3658aba01013c13
parent1ede08405595cafe5792aa514a4bc3309602e40f (diff)
downloadscummvm-rg350-79f11bd381b468a8fcca860ee3c2232606324fa5.tar.gz
scummvm-rg350-79f11bd381b468a8fcca860ee3c2232606324fa5.tar.bz2
scummvm-rg350-79f11bd381b468a8fcca860ee3c2232606324fa5.zip
SHERLOCK: Make virtual destructors for user interface classes
-rw-r--r--engines/sherlock/user_interface.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sherlock/user_interface.h b/engines/sherlock/user_interface.h
index 8a0f4f5613..2203ddf05e 100644
--- a/engines/sherlock/user_interface.h
+++ b/engines/sherlock/user_interface.h
@@ -88,6 +88,7 @@ public:
int _lookHelp;
public:
static UserInterface *init(SherlockEngine *vm);
+ virtual ~UserInterface() {}
/**
* Resets the user interface
@@ -253,7 +254,7 @@ private:
void printObjectDesc(const Common::String &str, bool firstTime);
public:
ScalpelUserInterface(SherlockEngine *vm);
- ~ScalpelUserInterface();
+ virtual ~ScalpelUserInterface();
/**
* Handles counting down whilst checking for input, then clears the info line.
@@ -317,6 +318,8 @@ class TattooUserInterface : public UserInterface {
public:
TattooUserInterface(SherlockEngine *vm);
public:
+ virtual ~TattooUserInterface() {}
+
/**
* Main input handler for the user interface
*/