You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by nn...@apache.org on 2015/02/18 21:03:11 UTC
mesos git commit: Fixed variable shadowing in module_tests.cpp.
Repository: mesos
Updated Branches:
refs/heads/master c7c185e38 -> 3a7652b2d
Fixed variable shadowing in module_tests.cpp.
Review: https://reviews.apache.org/r/29855
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3a7652b2
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3a7652b2
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3a7652b2
Branch: refs/heads/master
Commit: 3a7652b2ddd992644087a850da8652f840c19876
Parents: c7c185e
Author: Kapil Arya <ka...@mesosphere.io>
Authored: Wed Feb 18 11:50:16 2015 -0800
Committer: Niklas Q. Nielsen <ni...@mesosphere.io>
Committed: Wed Feb 18 11:50:16 2015 -0800
----------------------------------------------------------------------
src/tests/module_tests.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/3a7652b2/src/tests/module_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/module_tests.cpp b/src/tests/module_tests.cpp
index 64e05c1..a16ba99 100644
--- a/src/tests/module_tests.cpp
+++ b/src/tests/module_tests.cpp
@@ -92,8 +92,7 @@ protected:
library->set_file(path::join(
libraryDirectory,
os::libraries::expandName(DEFAULT_MODULE_LIBRARY_NAME)));
- Modules::Library::Module* module = library->add_modules();
- module->set_name(DEFAULT_MODULE_NAME);
+ library->add_modules()->set_name(DEFAULT_MODULE_NAME);
}
// During the per-test tear-down, we unload the module to allow