This is an automated email from the ASF dual-hosted git repository.

mzhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new 76f75a8  Removed an unnecessary const expression capture in a lambda.
76f75a8 is described below

commit 76f75a827bb11908ede5cd571a398e42f8204212
Author: Meng Zhu <[email protected]>
AuthorDate: Thu Oct 31 09:44:19 2019 -0700

    Removed an unnecessary const expression capture in a lambda.
---
 src/tests/hierarchical_allocator_tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/hierarchical_allocator_tests.cpp 
b/src/tests/hierarchical_allocator_tests.cpp
index 882ab63..eea194a 100644
--- a/src/tests/hierarchical_allocator_tests.cpp
+++ b/src/tests/hierarchical_allocator_tests.cpp
@@ -8451,7 +8451,7 @@ 
TEST_P(HierarchicalAllocator__BENCHMARK_WithResourceParam, UpdateAllocation)
   // "parent_role/role-[random letters with childRoleLength]".
   const size_t childRoleLength = 36u;
   vector<string> roles(param.roleCount);
-  std::generate(roles.begin(), roles.end(), [&childRoleLength, &randString]() {
+  std::generate(roles.begin(), roles.end(), [&randString]() {
     return "role-" + randString(childRoleLength);
   });
 

Reply via email to