clang-tidy: fix performance-no-automatic-move warnings

This commit is contained in:
Ben Boeckel
2021-01-22 10:37:10 -05:00
parent 3a0d40bf8c
commit 4f396e6528
3 changed files with 2 additions and 3 deletions

View File

@@ -17,7 +17,6 @@ modernize-*,\
-modernize-use-trailing-return-type,\
-modernize-use-transparent-functors,\
performance-*,\
-performance-no-automatic-move,\
-performance-trivially-destructible,\
readability-*,\
-readability-convert-member-functions-to-static,\

View File

@@ -1675,7 +1675,7 @@ std::string cmCTestTestHandler::FindExecutable(
// if everything else failed, check the users path, but only if a full path
// wasn't specified
if (fullPath.empty() && filepath.empty()) {
std::string const path = cmSystemTools::FindProgram(filename.c_str());
std::string path = cmSystemTools::FindProgram(filename.c_str());
if (!path.empty()) {
resultingConfig.clear();
return path;

View File

@@ -189,7 +189,7 @@ std::string MakeSourceFilePathAbsoluteIfNeeded(
if (!needed) {
return source_file_path;
}
const std::string absolute_file_path = cmSystemTools::CollapseFullPath(
std::string absolute_file_path = cmSystemTools::CollapseFullPath(
source_file_path, status.GetMakefile().GetCurrentSourceDirectory());
return absolute_file_path;
}