mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 18:50:39 +02:00
clang-tidy: loop conversion
Found with modernize-loop-convert Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
15f0ab87e0
commit
ab7f5b0b51
7 changed files with 36 additions and 38 deletions
|
@ -427,11 +427,11 @@ int CmdCalendar::execute (std::string& output)
|
|||
auto v = hm_it.second;
|
||||
Datetime hDate (hm_it.first);
|
||||
auto d = hDate.toString (format);
|
||||
for (size_t i = 0; i < v.size(); i++)
|
||||
for (const auto& i : v)
|
||||
{
|
||||
auto row = holTable.addRow ();
|
||||
holTable.set (row, 0, d);
|
||||
holTable.set (row, 1, v[i]);
|
||||
holTable.set (row, 1, i);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue