mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
C++11: N1984 auto
This commit is contained in:
parent
7bbc794d3a
commit
e8d04bdce6
24 changed files with 77 additions and 77 deletions
|
@ -60,7 +60,7 @@ int CmdUDAs::execute (std::string& output)
|
|||
if (name.first.substr (0, 4) == "uda." &&
|
||||
name.first.find (".type") != std::string::npos)
|
||||
{
|
||||
std::string::size_type period = name.first.find ('.', 4);
|
||||
auto period = name.first.find ('.', 4);
|
||||
if (period != std::string::npos)
|
||||
udas.push_back (name.first.substr (4, period - 4));
|
||||
}
|
||||
|
@ -187,7 +187,7 @@ int CmdCompletionUDAs::execute (std::string& output)
|
|||
if (name.first.substr (0, 4) == "uda." &&
|
||||
name.first.find (".type") != std::string::npos)
|
||||
{
|
||||
std::string::size_type period = name.first.find ('.', 4);
|
||||
auto period = name.first.find ('.', 4);
|
||||
if (period != std::string::npos)
|
||||
udas.push_back (name.first.substr (4, period - 4));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue