dont use a const_iterator
This commit is contained in:
parent
7048f64f45
commit
bf24a3b7fc
1 changed files with 1 additions and 1 deletions
|
@ -594,7 +594,7 @@ void Screen::lowerWindow(Client *client)
|
|||
assert(!_stacking.empty()); // this would be bad
|
||||
|
||||
Client::List::iterator it = --_stacking.end();
|
||||
Client::List::const_iterator end = _stacking.begin();
|
||||
const Client::List::iterator end = _stacking.begin();
|
||||
|
||||
for (; it != end && (*it)->layer() < client->layer(); --it);
|
||||
if (*it == client) return; // already the bottom, return
|
||||
|
|
Loading…
Reference in a new issue