[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash/server dlist.cpp
From: |
Bastiaan Jacques |
Subject: |
Re: [Gnash-commit] gnash/server dlist.cpp |
Date: |
Wed, 23 Aug 2006 17:03:11 +0200 |
User-agent: |
KMail/1.9.4 |
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