mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-21 14:40:48 +08:00
clang-tidy: fix modernize-use-auto
lints
This commit is contained in:
@@ -1061,7 +1061,7 @@ std::string cmCPackWIXGenerator::GetRightmostExtension(
|
|||||||
|
|
||||||
std::string cmCPackWIXGenerator::PathToId(std::string const& path)
|
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()) {
|
if (i != PathToIdMap.end()) {
|
||||||
return i->second;
|
return i->second;
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,7 @@ bool cmWIXPatch::LoadFragments(std::string const& patchFilePath)
|
|||||||
void cmWIXPatch::ApplyFragment(std::string const& id,
|
void cmWIXPatch::ApplyFragment(std::string const& id,
|
||||||
cmWIXSourceWriter& writer)
|
cmWIXSourceWriter& writer)
|
||||||
{
|
{
|
||||||
cmWIXPatchParser::fragment_map_t::iterator i = Fragments.find(id);
|
auto i = Fragments.find(id);
|
||||||
if (i == Fragments.end()) {
|
if (i == Fragments.end()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@@ -20,7 +20,7 @@ bool cmWIXShortcuts::EmitShortcuts(
|
|||||||
std::string const& cpackComponentName,
|
std::string const& cpackComponentName,
|
||||||
cmWIXFilesSourceWriter& fileDefinitions) const
|
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()) {
|
if (i == this->Shortcuts.end()) {
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user