summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorOrkun Tokdemir <ilhanorkuntokdemir@gmail.com>2024-01-09 11:58:28 (GMT)
committerOrkun Tokdemir <ilhanorkuntokdemir@gmail.com>2024-01-09 12:05:01 (GMT)
commit63d4e4ec2865b85a60f3f26d14be2c7116da79f0 (patch)
treede85b50a88c28dc7ed6a69b2727828a61c1e37af /Source
parent4d928592eb1c0a47c2eea3c2df25cf957c2e538b (diff)
downloadCMake-63d4e4ec2865b85a60f3f26d14be2c7116da79f0.zip
CMake-63d4e4ec2865b85a60f3f26d14be2c7116da79f0.tar.gz
CMake-63d4e4ec2865b85a60f3f26d14be2c7116da79f0.tar.bz2
Makefile: Reduce string copies
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 6a02bdb..4fd22fc 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -1921,7 +1921,7 @@ void cmMakefileTargetGenerator::WriteTargetDriverRule(
std::string dir =
this->LocalGenerator->GetRelativeTargetDirectory(this->GeneratorTarget);
std::string buildTargetRuleName =
- cmStrCat(dir, relink ? "/preinstall" : "/build");
+ cmStrCat(std::move(dir), relink ? "/preinstall" : "/build");
buildTargetRuleName =
this->LocalGenerator->MaybeRelativeToTopBinDir(buildTargetRuleName);
@@ -2202,9 +2202,9 @@ void cmMakefileTargetGenerator::CreateLinkLibs(
responseFileName, linkLibs, makefile_depends, responseLang);
// Reference the response file.
- linkLibs = cmStrCat(responseFlag,
+ linkLibs = cmStrCat(std::move(responseFlag),
this->LocalGenerator->ConvertToOutputFormat(
- link_rsp, cmOutputConverter::SHELL));
+ std::move(link_rsp), cmOutputConverter::SHELL));
}
}