Commit Graph

5 Commits

Author SHA1 Message Date
Paul Gilbert
60fa351d32 Expanded the actions view into a full user interface view, and added support for highlighting of user interface elements
svn-id: r46262
2009-12-05 05:44:46 +00:00
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
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Max Horn
19b6289688 Don't call Common::List::size() if you don't have to (it's an expensive operation, which has to iterate the whole List, while empty() works in constant time)
svn-id: r34786
2008-10-12 22:06:31 +00:00
Filippos Karapetis
7ca439f410 Initial import of the work in progress M4 engine
svn-id: r31600
2008-04-20 14:47:37 +00:00