util/DeleteDisposer: new utility class

This commit is contained in:
Max Kellermann
2015-10-19 15:57:00 +02:00
parent 62bfb1a273
commit 8d23706354
7 changed files with 55 additions and 24 deletions

View File

@@ -20,8 +20,7 @@
#include "config.h"
#include "ClientList.hxx"
#include "ClientInternal.hxx"
#include <algorithm>
#include "util/DeleteDisposer.hxx"
#include <assert.h>
@@ -36,7 +35,7 @@ ClientList::Remove(Client &client)
void
ClientList::CloseAll()
{
list.clear_and_dispose(Client::Disposer());
list.clear_and_dispose(DeleteDisposer());
}
void