diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-12 10:44:44 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-12 10:44:44 (GMT) |
commit | b96c3c74dd76fb9805f02d7b9ce604bd135b34f8 (patch) | |
tree | 8ca9cb2998cbb3ccf02b28842af3ba4f1a09e120 /Source/cmDependsC.cxx | |
parent | e81b4250190fce338711026489f1521fd4cf2acf (diff) | |
download | CMake-b96c3c74dd76fb9805f02d7b9ce604bd135b34f8.zip CMake-b96c3c74dd76fb9805f02d7b9ce604bd135b34f8.tar.gz CMake-b96c3c74dd76fb9805f02d7b9ce604bd135b34f8.tar.bz2 |
cmDependsC: Use auto for long type names
Diffstat (limited to 'Source/cmDependsC.cxx')
-rw-r--r-- | Source/cmDependsC.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx index cb5039d..57b5c36 100644 --- a/Source/cmDependsC.cxx +++ b/Source/cmDependsC.cxx @@ -141,7 +141,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources, // the source containing the include statement. fullName = current.QuotedLocation; } else { - std::map<std::string, std::string>::iterator headerLocationIt = + auto headerLocationIt = this->HeaderLocationCache.find(current.FileName); if (headerLocationIt != this->HeaderLocationCache.end()) { fullName = headerLocationIt->second; @@ -176,8 +176,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources, scanned.insert(fullName); // Check whether this file is already in the cache - std::map<std::string, cmIncludeLines*>::iterator fileIt = - this->FileCache.find(fullName); + auto fileIt = this->FileCache.find(fullName); if (fileIt != this->FileCache.end()) { fileIt->second->Used = true; dependencies.insert(fullName); |