summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-27 22:21:01 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-28 00:15:51 (GMT)
commit4489e9a85ce96ec6d15856b298f3d0255c8d615b (patch)
tree727dc572905997c44c4d0795e247bbe1ba558785 /Source
parent93a366697f5310738935b2f25dbf978f39031764 (diff)
downloadCMake-4489e9a85ce96ec6d15856b298f3d0255c8d615b.zip
CMake-4489e9a85ce96ec6d15856b298f3d0255c8d615b.tar.gz
CMake-4489e9a85ce96ec6d15856b298f3d0255c8d615b.tar.bz2
clang-tidy: fix `modernize-use-auto` lints
Diffstat (limited to 'Source')
-rw-r--r--Source/CPack/WiX/cmCPackWIXGenerator.cxx2
-rw-r--r--Source/CPack/WiX/cmWIXPatch.cxx2
-rw-r--r--Source/CPack/WiX/cmWIXShortcut.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.cxx b/Source/CPack/WiX/cmCPackWIXGenerator.cxx
index 1f55b80..b12b817 100644
--- a/Source/CPack/WiX/cmCPackWIXGenerator.cxx
+++ b/Source/CPack/WiX/cmCPackWIXGenerator.cxx
@@ -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;
}
diff --git a/Source/CPack/WiX/cmWIXPatch.cxx b/Source/CPack/WiX/cmWIXPatch.cxx
index 70033a3..c65449c 100644
--- a/Source/CPack/WiX/cmWIXPatch.cxx
+++ b/Source/CPack/WiX/cmWIXPatch.cxx
@@ -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;
}
diff --git a/Source/CPack/WiX/cmWIXShortcut.cxx b/Source/CPack/WiX/cmWIXShortcut.cxx
index c3eb219..1cfb6c1 100644
--- a/Source/CPack/WiX/cmWIXShortcut.cxx
+++ b/Source/CPack/WiX/cmWIXShortcut.cxx
@@ -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;