summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-29 13:05:17 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-01-29 13:05:27 (GMT)
commit92cd3d06772ada13935790d66927ab4663c7d628 (patch)
tree2550a2ad9003b47f9029c186aeabdfd6521bc615 /Source/cmGlobalUnixMakefileGenerator3.cxx
parent18153217e27d2cf560d874313557ec9fa2bcffdb (diff)
parentc85bb007df37aad9f20355cdf4d7ca9af562cb20 (diff)
downloadCMake-92cd3d06772ada13935790d66927ab4663c7d628.zip
CMake-92cd3d06772ada13935790d66927ab4663c7d628.tar.gz
CMake-92cd3d06772ada13935790d66927ab4663c7d628.tar.bz2
Merge topic 'reduce-temporaries'
c85bb007 Reduce allocation of temporary values on heap. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1698
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index 236bb3d..d6307eb 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -420,7 +420,7 @@ void cmGlobalUnixMakefileGenerator3::WriteDirectoryRule2(
std::string tname = lg->GetRelativeTargetDirectory(gtarget);
tname += "/";
tname += pass;
- depends.push_back(tname);
+ depends.push_back(std::move(tname));
}
}
}
@@ -432,7 +432,7 @@ void cmGlobalUnixMakefileGenerator3::WriteDirectoryRule2(
std::string subdir = c.GetDirectory().GetCurrentBinary();
subdir += "/";
subdir += pass;
- depends.push_back(subdir);
+ depends.push_back(std::move(subdir));
}
// Work-around for makes that drop rules that have no dependencies
@@ -513,7 +513,7 @@ void cmGlobalUnixMakefileGenerator3::GenerateBuildCommand(
tname =
conv.ConvertToRelativePath(mf->GetState()->GetBinaryDirectory(), tname);
cmSystemTools::ConvertToOutputSlashes(tname);
- makeCommand.push_back(tname);
+ makeCommand.push_back(std::move(tname));
if (this->Makefiles.empty()) {
delete mf;
}