mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 19:22:29 +00:00
cleanup: Remove rak::call_delete
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <rak/functional.h>
|
||||
#include <torrent/exceptions.h>
|
||||
|
||||
#include "text_element_list.h"
|
||||
@@ -46,7 +45,7 @@ namespace display {
|
||||
|
||||
void
|
||||
TextElementList::clear() {
|
||||
std::for_each(begin(), end(), rak::call_delete<TextElement>());
|
||||
std::for_each(begin(), end(), [](TextElement* t) { delete t; });
|
||||
base_type::clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user