Commit b96c3c74 authored by Sebastian Holtermann's avatar Sebastian Holtermann
Browse files

cmDependsC: Use auto for long type names

parent e81b4250
...@@ -141,7 +141,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources, ...@@ -141,7 +141,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources,
// the source containing the include statement. // the source containing the include statement.
fullName = current.QuotedLocation; fullName = current.QuotedLocation;
} else { } else {
std::map<std::string, std::string>::iterator headerLocationIt = auto headerLocationIt =
this->HeaderLocationCache.find(current.FileName); this->HeaderLocationCache.find(current.FileName);
if (headerLocationIt != this->HeaderLocationCache.end()) { if (headerLocationIt != this->HeaderLocationCache.end()) {
fullName = headerLocationIt->second; fullName = headerLocationIt->second;
...@@ -176,8 +176,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources, ...@@ -176,8 +176,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources,
scanned.insert(fullName); scanned.insert(fullName);
// Check whether this file is already in the cache // Check whether this file is already in the cache
std::map<std::string, cmIncludeLines*>::iterator fileIt = auto fileIt = this->FileCache.find(fullName);
this->FileCache.find(fullName);
if (fileIt != this->FileCache.end()) { if (fileIt != this->FileCache.end()) {
fileIt->second->Used = true; fileIt->second->Used = true;
dependencies.insert(fullName); dependencies.insert(fullName);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment