clang-tidy: convert loops to range based

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2025-06-16 15:37:27 -07:00
committed by Jari Sundell
parent bb8d677f6e
commit 0948b5f86a
26 changed files with 181 additions and 196 deletions
+4 -4
View File
@@ -58,8 +58,8 @@ PathInput::pressed(int key) {
return TextInput::pressed(key);
} else if (m_showNext) {
for (signal_void::iterator itr = m_signal_show_next.begin(), last = m_signal_show_next.end(); itr != last; itr++)
(*itr)();
for (auto& itr : m_signal_show_next)
itr();
} else {
receive_do_complete();
@@ -118,8 +118,8 @@ PathInput::receive_do_complete() {
if (m_showNext) {
lt_log_print(torrent::LOG_UI_EVENTS, "path_input: show next page");
for (signal_itr_itr::iterator itr = m_signal_show_range.begin(), last = m_signal_show_range.end(); itr != last; itr++)
(*itr)(r.first, r.second);
for (auto& itr : m_signal_show_range)
itr(r.first, r.second);
}
}