From 6db40e0c6c6c575696a7eaaa44b68c7579664d36 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 13 Apr 2011 17:08:16 +0200 Subject: 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. --- engines/tsage/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/tsage/graphics.cpp') 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); } -- cgit v1.2.3