summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio9Generator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-27 18:43:10 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-28 00:15:51 (GMT)
commitd4144b9c0a1a8a8f3a24ff33fc2582bb319d73ac (patch)
tree1fa5c411f938f8a5b9195f3b0b02ab60cc21dd11 /Source/cmGlobalVisualStudio9Generator.cxx
parent809248a0c9f3c2c203399d4cefe10a23cfc53add (diff)
downloadCMake-d4144b9c0a1a8a8f3a24ff33fc2582bb319d73ac.zip
CMake-d4144b9c0a1a8a8f3a24ff33fc2582bb319d73ac.tar.gz
CMake-d4144b9c0a1a8a8f3a24ff33fc2582bb319d73ac.tar.bz2
strings: use `emplace_back` with `cmStrCat` arguments
Diffstat (limited to 'Source/cmGlobalVisualStudio9Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio9Generator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGlobalVisualStudio9Generator.cxx b/Source/cmGlobalVisualStudio9Generator.cxx
index 462db2a..de2153d 100644
--- a/Source/cmGlobalVisualStudio9Generator.cxx
+++ b/Source/cmGlobalVisualStudio9Generator.cxx
@@ -72,21 +72,21 @@ public:
std::vector<std::string> GetGeneratorNames() const override
{
std::vector<std::string> names;
- names.push_back(vs9generatorName);
+ names.emplace_back(vs9generatorName);
return names;
}
std::vector<std::string> GetGeneratorNamesWithPlatform() const override
{
std::vector<std::string> names;
- names.push_back(cmStrCat(vs9generatorName, " Win64"));
- names.push_back(cmStrCat(vs9generatorName, " IA64"));
+ names.emplace_back(cmStrCat(vs9generatorName, " Win64"));
+ names.emplace_back(cmStrCat(vs9generatorName, " IA64"));
cmVisualStudioWCEPlatformParser parser;
parser.ParseVersion("9.0");
const std::vector<std::string>& availablePlatforms =
parser.GetAvailablePlatforms();
for (std::string const& i : availablePlatforms) {
- names.push_back(cmStrCat("Visual Studio 9 2008 ", i));
+ names.emplace_back(cmStrCat("Visual Studio 9 2008 ", i));
}
return names;
}