summaryrefslogtreecommitdiffstats
path: root/Source/cmExportInstallFileGenerator.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/cmExportInstallFileGenerator.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/cmExportInstallFileGenerator.cxx')
-rw-r--r--Source/cmExportInstallFileGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx
index 264c947..6cf3a09 100644
--- a/Source/cmExportInstallFileGenerator.cxx
+++ b/Source/cmExportInstallFileGenerator.cxx
@@ -616,7 +616,7 @@ std::string cmExportInstallFileGenerator::GetFileSetDirectories(
resultVector.push_back(
cmStrCat("\"$<$<CONFIG:", config, ">:", dest, ">\""));
} else {
- resultVector.push_back(cmStrCat('"', dest, '"'));
+ resultVector.emplace_back(cmStrCat('"', dest, '"'));
break;
}
}
@@ -690,7 +690,7 @@ std::string cmExportInstallFileGenerator::GetFileSetFiles(
resultVector.push_back(
cmStrCat("\"$<$<CONFIG:", config, ">:", escapedFile, ">\""));
} else {
- resultVector.push_back(cmStrCat('"', escapedFile, '"'));
+ resultVector.emplace_back(cmStrCat('"', escapedFile, '"'));
}
}
}