diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-27 18:43:10 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-28 00:15:51 (GMT) |
commit | d4144b9c0a1a8a8f3a24ff33fc2582bb319d73ac (patch) | |
tree | 1fa5c411f938f8a5b9195f3b0b02ab60cc21dd11 /Source/cmGlobalVisualStudio10Generator.cxx | |
parent | 809248a0c9f3c2c203399d4cefe10a23cfc53add (diff) | |
download | CMake-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.cxx | 6 |
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]"); |