scummvm/engines/m4
Max Horn 5181546c63 Rewrote Common::List iterator code to ensure const correctness is preserved.
We tried to implement the list iterators in a clever way, to reduce code
duplication. But this is essentially impossible to do properly, sadly --
this is one of the places where the ugly drawbacks of C++ really show.
As a consequence, our implementation had a bug which allowed one to
convert any const_iterator to an iterator, thus allowing modifying
elements of const lists.

This rewrite reintroduces code duplication but at least ensures that no
const list is written to accidentally.

Also fix some places which incorrectly used iterator instead of const_iterator
or (in the kyra code) accidentally wrote into a const list.

svn-id: r39279
2009-03-09 22:26:02 +00:00
..
actor.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
actor.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
animation.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
animation.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
assets.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
assets.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
burger_data.h Whitespace cleanup: Convert space followed by tab to just tab 2009-03-07 19:24:31 +00:00
compression.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
compression.h Initial import of the work in progress M4 engine 2008-04-20 14:47:37 +00:00
console.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
console.h Initial import of the work in progress M4 engine 2008-04-20 14:47:37 +00:00
converse.cpp A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines 2009-01-29 05:26:12 +00:00
converse.h Fixed warnings. (Mainly, GCC 4.3 doesn't want you to use "char" as an array 2008-06-09 17:50:52 +00:00
detection.cpp Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match the meaning of the returned string, as discussed some time ago in scummvm-devel 2009-03-05 12:04:58 +00:00
events.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
events.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
font.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
font.h Initial import of the work in progress M4 engine 2008-04-20 14:47:37 +00:00
globals.cpp A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines 2009-01-29 05:26:12 +00:00
globals.h Whitespace cleanup: Convert space followed by tab to just tab 2009-03-07 19:24:31 +00:00
graphics.cpp A ton of code formatting fixes; also fixed warnings about single line loops like 'while(cond);' by inserting newlines 2009-01-29 05:26:12 +00:00
graphics.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
gui.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
gui.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
hotspot.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
hotspot.h Merged loadHotSpotsMads() and loadHotSpotsM4() 2008-10-02 22:04:34 +00:00
m4_menus.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
m4_menus.h Initial import of the work in progress M4 engine 2008-04-20 14:47:37 +00:00
m4_views.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
m4_views.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
m4.cpp Engines: Fused several init&go methods into a single run method 2009-03-01 04:42:46 +00:00
m4.h Engines: Fused several init&go methods into a single run method 2009-03-01 04:42:46 +00:00
mads_anim.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
mads_anim.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
mads_menus.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
mads_menus.h Initial import of the work in progress M4 engine 2008-04-20 14:47:37 +00:00
midi.cpp Big patch changing the signature of various Stream methods (some ports may need to be slightly tweaked to fix overloading errors/warnings) 2008-09-13 16:51:46 +00:00
midi.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
module.mk Allow static and dynamic plugins to be used at the same time 2008-05-06 03:00:26 +00:00
rails.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
rails.h Initial import of the work in progress M4 engine 2008-04-20 14:47:37 +00:00
resource.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
resource.h Initial import of the work in progress M4 engine 2008-04-20 14:47:37 +00:00
saveload.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
saveload.h Initial import of the work in progress M4 engine 2008-04-20 14:47:37 +00:00
scene.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
scene.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
script.cpp Whitespace cleanup: Convert space followed by tab to just tab 2009-03-07 19:24:31 +00:00
script.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
scripttab.h Initial import of the work in progress M4 engine 2008-04-20 14:47:37 +00:00
sound.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
sound.h Initial import of the work in progress M4 engine 2008-04-20 14:47:37 +00:00
sprite.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
sprite.h Initial import of the work in progress M4 engine 2008-04-20 14:47:37 +00:00
viewmgr.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
viewmgr.h Rewrote Common::List iterator code to ensure const correctness is preserved. 2009-03-09 22:26:02 +00:00
woodscript.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
woodscript.h Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00
ws_machine.cpp Whitespace cleanup: Convert space followed by tab to just tab 2009-03-07 19:24:31 +00:00
ws_sequence.cpp Whoa! Removing trailing spaces. 2009-01-01 15:06:43 +00:00