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

@@ -464,7 +464,7 @@ const std::string TF2::dump ()
// File label.
std::string label;
std::string::size_type slash = _file._data.rfind ('/');
auto slash = _file._data.rfind ('/');
if (slash != std::string::npos)
label = rightJustify (_file._data.substr (slash + 1), 14);
@@ -791,7 +791,7 @@ void TDB2::revert_undo (
}
// Extract identifying uuid.
std::string::size_type uuidAtt = current.find ("uuid:\"");
auto uuidAtt = current.find ("uuid:\"");
if (uuidAtt != std::string::npos)
uuid = current.substr (uuidAtt + 6, 36); // "uuid:"<uuid>" --> <uuid>
else