summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorRose <gfunni234@gmail.com>2022-12-10 17:48:09 (GMT)
committerRose <gfunni234@gmail.com>2022-12-10 17:48:09 (GMT)
commit6d15754814e2b7cc53402267f2b1ce6f61e631e8 (patch)
treedffaf0d92410862c6b92f900b5826b8ea038b765 /Source/cmGlobalXCodeGenerator.cxx
parent192903b244b292070cbd96d914811c6f6bacae08 (diff)
downloadCMake-6d15754814e2b7cc53402267f2b1ce6f61e631e8.zip
CMake-6d15754814e2b7cc53402267f2b1ce6f61e631e8.tar.gz
CMake-6d15754814e2b7cc53402267f2b1ce6f61e631e8.tar.bz2
Make vector operations more efficient
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 6751efd..a9a0fd5 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -3623,7 +3623,7 @@ void cmGlobalXCodeGenerator::AddDependAndLinkInformation(cmXCodeObject* target)
}
// Add a pair of config and item to target-item map
auto& itemVector = targetItemMap[libName];
- itemVector.emplace_back(ConfigItemPair(configName, &libItem));
+ itemVector.emplace_back(configName, &libItem);
// Add product file-name to a lib-product map
auto productName =
cmSystemTools::GetFilenameName(libItem.Value.Value);
@@ -4381,7 +4381,7 @@ bool cmGlobalXCodeGenerator::CreateXCodeObjects(
cmXCodeObject* config =
this->CreateObject(cmXCodeObject::XCBuildConfiguration);
config->AddAttribute("name", this->CreateString(name));
- configs.push_back(std::make_pair(name, config));
+ configs.emplace_back(name, config);
}
if (defaultConfigName.empty()) {
defaultConfigName = "Debug";