aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/viewmgr.h
AgeCommit message (Collapse)Author
2009-03-09Rewrote Common::List iterator code to ensure const correctness is preserved.Max Horn
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-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-10-12Don't call Common::List::size() if you don't have to (it's an expensive ↵Max Horn
operation, which has to iterate the whole List, while empty() works in constant time) svn-id: r34786
2008-04-20Initial import of the work in progress M4 engineFilippos Karapetis
svn-id: r31600