aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/graphics.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-13 17:08:16 +0200
committerJohannes Schickel2011-04-13 18:26:12 +0200
commit6db40e0c6c6c575696a7eaaa44b68c7579664d36 (patch)
treed3629eff596b24937f137da1561d47b2a778ecf3 /engines/tsage/graphics.cpp
parent0234c9ff95e3456bdb2c0eb0f2763516f6748c29 (diff)
downloadscummvm-rg350-6db40e0c6c6c575696a7eaaa44b68c7579664d36.tar.gz
scummvm-rg350-6db40e0c6c6c575696a7eaaa44b68c7579664d36.tar.bz2
scummvm-rg350-6db40e0c6c6c575696a7eaaa44b68c7579664d36.zip
TSAGE: Cleanup custom List usage.
This makes the code use Common::List for all cases where synchronization can not be done with tSage::List::synchronise. Furthermore I renamed the custom List class to SynchronisedList to stress its purpose. I also removed clear2, contains and forEach and replaced them with algorithm usage from Common:: or in the case of "contains" replaced them with a simple inline function which uses Common::find.
Diffstat (limited to 'engines/tsage/graphics.cpp')
-rw-r--r--engines/tsage/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp
index f497fac732..12ccabd6a5 100644
--- a/engines/tsage/graphics.cpp
+++ b/engines/tsage/graphics.cpp
@@ -1018,7 +1018,7 @@ void GfxManager::setDefaults() {
}
void GfxManager::activate() {
- assert(!_globals->_gfxManagers.contains(this));
+ assert(!contains(_globals->_gfxManagers, this));
_globals->_gfxManagers.push_front(this);
}