On Wednesday 23 August 2006 16:08, Vitaly Alexeev wrote:
> -       for (iterator it = _characters.begin(),
> -                       itEnd = _characters.end();
> +       //Vitaly:  That there was no crash gnash we iterate through
> the copy +       std::list<DisplayItem> tmp_list = _characters;  //vv
> +
> +       for (iterator it = tmp_list.begin(), itEnd = tmp_list.end();
>                 it != itEnd; ++it)

What about:

for (iterator it = _characters.begin(); it != _characters.end(); ++it) {
 // ..
}

? 

This would save you a copy and (I believe) would be safer than the 
original.

Bastiaan



_______________________________________________
Gnash-commit mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to