mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
C++11: Cleaned up program framework with range-based for
This commit is contained in:
parent
5a57dfd70d
commit
e74c6963a9
28 changed files with 937 additions and 1221 deletions
|
@ -982,12 +982,11 @@ bool Nibbler::getOneOf (
|
|||
const std::vector <std::string>& options,
|
||||
std::string& found)
|
||||
{
|
||||
std::vector <std::string>::const_iterator option;
|
||||
for (option = options.begin (); option != options.end (); ++option)
|
||||
for (auto& option : options)
|
||||
{
|
||||
if (getLiteral (*option))
|
||||
if (getLiteral (option))
|
||||
{
|
||||
found = *option;
|
||||
found = option;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue