summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio10Generator.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/cmGlobalVisualStudio10Generator.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/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index 41cd807..7a852f8 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/Source/cmGlobalVisualStudio10Generator.cxx
@@ -975,9 +975,9 @@ bool cmGlobalVisualStudio10Generator::FindVCTargetsPath(cmMakefile* mf)
std::vector<std::string> cmd;
cmd.push_back(this->GetMSBuildCommand());
cmd.push_back(vcxproj);
- cmd.push_back("/p:Configuration=Debug");
- cmd.push_back(cmStrCat("/p:Platform=", this->GetPlatformName()));
- cmd.push_back(cmStrCat("/p:VisualStudioVersion=", this->GetIDEVersion()));
+ cmd.emplace_back("/p:Configuration=Debug");
+ cmd.emplace_back(cmStrCat("/p:Platform=", this->GetPlatformName()));
+ cmd.emplace_back(cmStrCat("/p:VisualStudioVersion=", this->GetIDEVersion()));
std::string out;
int ret = 0;
cmsys::RegularExpression regex("\n *VCTargetsPath=([^%\r\n]+)[\r\n]");