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/CPack | |
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/CPack')
-rw-r--r-- | Source/CPack/cmCPackInnoSetupGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CPack/cmCPackInnoSetupGenerator.cxx b/Source/CPack/cmCPackInnoSetupGenerator.cxx index ada9a5b..b8bf070 100644 --- a/Source/CPack/cmCPackInnoSetupGenerator.cxx +++ b/Source/CPack/cmCPackInnoSetupGenerator.cxx @@ -106,7 +106,7 @@ int cmCPackInnoSetupGenerator::PackageFiles() const cmList extraScripts(GetOption("CPACK_INNOSETUP_EXTRA_SCRIPTS")); for (const std::string& i : extraScripts) { - includeDirectives.push_back(cmStrCat( + includeDirectives.emplace_back(cmStrCat( "#include ", QuotePath(cmSystemTools::CollapseFullPath(i, toplevel)))); } } @@ -142,7 +142,7 @@ int cmCPackInnoSetupGenerator::PackageFiles() const cmList codeFiles(GetOption("CPACK_INNOSETUP_CODE_FILES")); for (const std::string& i : codeFiles) { - codeIncludes.push_back(cmStrCat( + codeIncludes.emplace_back(cmStrCat( "#include ", QuotePath(cmSystemTools::CollapseFullPath(i, toplevel)))); } } @@ -781,7 +781,7 @@ bool cmCPackInnoSetupGenerator::ConfigureISScript() // Create internal variables std::vector<std::string> setupSection; for (const auto& i : setupDirectives) { - setupSection.push_back(cmStrCat(i.first, '=', TranslateBool(i.second))); + setupSection.emplace_back(cmStrCat(i.first, '=', TranslateBool(i.second))); } // Also create comments if the sections are empty @@ -1082,7 +1082,7 @@ std::string cmCPackInnoSetupGenerator::ISKeyValueLine( std::vector<std::string> keys; for (const char* i : availableKeys) { if (params.count(i)) { - keys.push_back(cmStrCat(i, ": ", params.at(i))); + keys.emplace_back(cmStrCat(i, ": ", params.at(i))); } } |