mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
clang-tidy: Use emplace
This commit is contained in:
committed by
Brad King
parent
2e5307a2a4
commit
ef61997b1b
@@ -1005,12 +1005,12 @@ void cmCoreTryCompile::FindOutputFile(const std::string& targetName,
|
||||
tmp += config;
|
||||
searchDirs.push_back(std::move(tmp));
|
||||
}
|
||||
searchDirs.push_back("/Debug");
|
||||
searchDirs.emplace_back("/Debug");
|
||||
#if defined(__APPLE__)
|
||||
std::string app = "/Debug/" + targetName + ".app";
|
||||
searchDirs.push_back(std::move(app));
|
||||
#endif
|
||||
searchDirs.push_back("/Development");
|
||||
searchDirs.emplace_back("/Development");
|
||||
|
||||
for (std::string const& sdir : searchDirs) {
|
||||
std::string command = this->BinaryDirectory;
|
||||
|
||||
Reference in New Issue
Block a user