erase from the map more efficiently
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
4 deletions(-)
jump to
M
src/openbox.cc
→
src/openbox.cc
@@ -265,10 +265,7 @@
void Openbox::removeClient(Window window) { - _clients[window] = 0; - ClientMap::iterator it = _clients.find(window); - if (it != _clients.end()) - _clients.erase(it); + _clients.erase(window); }