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:
Rosen Penev
2025-06-18 17:50:05 -07:00
committed by Jari Sundell
parent 8b663dd169
commit 84c0d516ef
10 changed files with 43 additions and 43 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ namespace display {
void
TextElementList::clear() {
std::for_each(begin(), end(), [](TextElement* t) { delete t; });
for (auto t : *this)
delete t;
base_type::clear();
}