summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMultiProcessHandler.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/CTest/cmCTestMultiProcessHandler.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/CTest/cmCTestMultiProcessHandler.cxx')
-rw-r--r--Source/CTest/cmCTestMultiProcessHandler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx
index 2821ab8..eee9b6c 100644
--- a/Source/CTest/cmCTestMultiProcessHandler.cxx
+++ b/Source/CTest/cmCTestMultiProcessHandler.cxx
@@ -535,7 +535,7 @@ void cmCTestMultiProcessHandler::CreateParallelTestCostList()
TestSet alreadySortedTests;
std::list<TestSet> priorityStack;
- priorityStack.push_back(TestSet());
+ priorityStack.emplace_back();
TestSet& topLevel = priorityStack.back();
// In parallel test runs add previously failed tests to the front
@@ -557,7 +557,7 @@ void cmCTestMultiProcessHandler::CreateParallelTestCostList()
// further dependencies exist.
while (!priorityStack.back().empty()) {
TestSet& previousSet = priorityStack.back();
- priorityStack.push_back(TestSet());
+ priorityStack.emplace_back();
TestSet& currentSet = priorityStack.back();
for (auto const& i : previousSet) {