1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-20 04:24:36 +08:00

clang-tidy: fix modernize-use-auto lints

This commit is contained in:
Ben Boeckel
2023-07-27 18:21:01 -04:00
parent 93a366697f
commit 4489e9a85c
3 changed files with 3 additions and 3 deletions

View File

@@ -1061,7 +1061,7 @@ std::string cmCPackWIXGenerator::GetRightmostExtension(
std::string cmCPackWIXGenerator::PathToId(std::string const& path)
{
id_map_t::const_iterator i = PathToIdMap.find(path);
auto i = PathToIdMap.find(path);
if (i != PathToIdMap.end()) {
return i->second;
}

View File

@@ -25,7 +25,7 @@ bool cmWIXPatch::LoadFragments(std::string const& patchFilePath)
void cmWIXPatch::ApplyFragment(std::string const& id,
cmWIXSourceWriter& writer)
{
cmWIXPatchParser::fragment_map_t::iterator i = Fragments.find(id);
auto i = Fragments.find(id);
if (i == Fragments.end()) {
return;
}

View File

@@ -20,7 +20,7 @@ bool cmWIXShortcuts::EmitShortcuts(
std::string const& cpackComponentName,
cmWIXFilesSourceWriter& fileDefinitions) const
{
shortcut_type_map_t::const_iterator i = this->Shortcuts.find(type);
auto i = this->Shortcuts.find(type);
if (i == this->Shortcuts.end()) {
return false;