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

@@ -108,7 +108,7 @@ int CmdDenotate::execute (std::string& output)
{
for (auto i = annotations.begin (); i != annotations.end (); ++i)
{
std::string::size_type loc = find (i->second, pattern, sensitive);
auto loc = find (i->second, pattern, sensitive);
if (loc != std::string::npos)
{
anno = i->second;