aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/titanic/core/list.h2
-rw-r--r--engines/titanic/game_view.h1
-rw-r--r--engines/titanic/sound/sound_manager.h1
-rw-r--r--engines/titanic/true_talk/tt_word.h2
4 files changed, 4 insertions, 2 deletions
diff --git a/engines/titanic/core/list.h b/engines/titanic/core/list.h
index 1905c0ffa8..4052a018c7 100644
--- a/engines/titanic/core/list.h
+++ b/engines/titanic/core/list.h
@@ -149,7 +149,7 @@ public:
}
bool contains(const T *item) const {
- for (Common::List<T *>::const_iterator i = Common::List<T *>::begin();
+ for (typename Common::List<T *>::const_iterator i = Common::List<T *>::begin();
i != Common::List<T *>::end(); ++i) {
if (*i == item)
return true;
diff --git a/engines/titanic/game_view.h b/engines/titanic/game_view.h
index 0bba5cfa86..74ab207d36 100644
--- a/engines/titanic/game_view.h
+++ b/engines/titanic/game_view.h
@@ -39,6 +39,7 @@ public:
CVideoSurface *_surface;
public:
CGameView();
+ virtual ~CGameView() {}
/**
* Set the game manager
diff --git a/engines/titanic/sound/sound_manager.h b/engines/titanic/sound/sound_manager.h
index e9fd1faf0a..75cf06e931 100644
--- a/engines/titanic/sound/sound_manager.h
+++ b/engines/titanic/sound/sound_manager.h
@@ -36,6 +36,7 @@ protected:
int _field14;
public:
SoundManager();
+ virtual ~SoundManager() {}
/**
* Loads a sound
diff --git a/engines/titanic/true_talk/tt_word.h b/engines/titanic/true_talk/tt_word.h
index 349e9e9910..428a3e3229 100644
--- a/engines/titanic/true_talk/tt_word.h
+++ b/engines/titanic/true_talk/tt_word.h
@@ -70,7 +70,7 @@ public:
public:
TTword(const TTstring &str, WordClass wordClass, int val2);
TTword(const TTword *src);
- ~TTword();
+ virtual ~TTword();
/**
* Delete any following words chained to the word