mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Code Cleanup
- Further attemps at removing 'foreach'.
This commit is contained in:
parent
10e3f306dd
commit
5f8b3cf989
4 changed files with 38 additions and 26 deletions
|
@ -189,7 +189,8 @@ int autoComplete (
|
|||
unsigned int length = partial.length ();
|
||||
if (length)
|
||||
{
|
||||
foreach (item, list)
|
||||
std::vector <std::string>::const_iterator item;
|
||||
for (item = list.begin (); item != list.end (); ++item)
|
||||
{
|
||||
// An exact match is a special case. Assume there is only one exact match
|
||||
// and return immediately.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue