mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 05:32:31 +00:00
replace for_each with range loops
No advantage over the latter, which is simpler. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Jari Sundell
parent
8b663dd169
commit
84c0d516ef
@@ -18,7 +18,8 @@ namespace core {
|
||||
|
||||
void
|
||||
ViewManager::clear() {
|
||||
std::for_each(begin(), end(), [](View* v) { delete v; });
|
||||
for (auto v : *this)
|
||||
delete v;
|
||||
|
||||
base_type::clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user