C++11: N1984 auto

This commit is contained in:
Paul Beckingham 2015-05-24 13:36:26 -04:00
parent 7bbc794d3a
commit e8d04bdce6
24 changed files with 77 additions and 77 deletions

View file

@ -71,7 +71,7 @@ void ColumnProject::measure (Task& task, unsigned int& minimum, unsigned int& ma
if (_style == "parent")
{
std::string::size_type period = project.find ('.');
auto period = project.find ('.');
if (period != std::string::npos)
project = project.substr (0, period);
}
@ -101,7 +101,7 @@ void ColumnProject::render (
std::string project = task.get (_name);
if (_style == "parent")
{
std::string::size_type period = project.find ('.');
auto period = project.find ('.');
if (period != std::string::npos)
project = project.substr (0, period);
}

View file

@ -62,7 +62,7 @@ extern Context context;
Column* Column::factory (const std::string& name, const std::string& report)
{
// Decompose name into type and style.
std::string::size_type dot = name.find ('.');
auto dot = name.find ('.');
std::string column_name;
std::string column_style;
if (dot != std::string::npos)