aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/res_struct.h
diff options
context:
space:
mode:
authorLars Persson2006-03-09 13:54:36 +0000
committerLars Persson2006-03-09 13:54:36 +0000
commit04151343a78f28c4d58a1a48c1e352888ee4f71c (patch)
treeb7daf56b9618d75629ceeac0acf0d80c0632a47e /engines/lure/res_struct.h
parent1d14d18893134ece3819a4c8ff92c10073c2d076 (diff)
downloadscummvm-rg350-04151343a78f28c4d58a1a48c1e352888ee4f71c.tar.gz
scummvm-rg350-04151343a78f28c4d58a1a48c1e352888ee4f71c.tar.bz2
scummvm-rg350-04151343a78f28c4d58a1a48c1e352888ee4f71c.zip
Compile fixes for VC6
svn-id: r21179
Diffstat (limited to 'engines/lure/res_struct.h')
-rw-r--r--engines/lure/res_struct.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/lure/res_struct.h b/engines/lure/res_struct.h
index 2b1384a056..86f2a0b779 100644
--- a/engines/lure/res_struct.h
+++ b/engines/lure/res_struct.h
@@ -184,6 +184,7 @@ struct TalkResponseResource {
template <class T>
class ManagedList: public Common::List<T> {
+ typedef typename Common::List<T> Common_List;
public:
~ManagedList() {
clear();
@@ -191,14 +192,14 @@ public:
void clear() {
typename Common::List<T>::iterator i;
- for (i = Common::List<T>::begin(); i != Common::List<T>::end(); ++i)
+ for (i = Common_List::begin(); i != Common_List::end(); ++i)
delete *i;
- Common::List<T>::clear();
+ Common_List::clear();
}
typename Common::List<T>::iterator erase(typename Common::List<T>::iterator pos) {
delete *pos;
- return Common::List<T>::erase(pos);
+ return Common_List::erase(pos);
}
typename Common::List<T>::iterator erase(typename Common::List<T>::iterator first,
@@ -206,7 +207,7 @@ public:
typename Common::List<T>::iterator i;
for (i = first; i != last; ++i)
delete *i;
- return Common::List<T>::erase(first, last);
+ return Common_List::erase(first, last);
}
};