You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2016/05/10 15:00:48 UTC

[2/3] mesos git commit: Cleaned up `using` statements in "zookeeper/contender.cpp".

Cleaned up `using` statements in "zookeeper/contender.cpp".

Avoid including the entire `process` namespace; instead, only pull
in the particular identifiers from that namespace that are needed.

Review: https://reviews.apache.org/r/47113/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c443db45
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c443db45
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c443db45

Branch: refs/heads/master
Commit: c443db4500aacbb673f1e7ac09e77f9ae4b38e13
Parents: 4bab108
Author: Neil Conway <ne...@gmail.com>
Authored: Tue May 10 16:46:02 2016 +0200
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Tue May 10 16:46:02 2016 +0200

----------------------------------------------------------------------
 src/zookeeper/contender.cpp | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c443db45/src/zookeeper/contender.cpp
----------------------------------------------------------------------
diff --git a/src/zookeeper/contender.cpp b/src/zookeeper/contender.cpp
index 8d76bdf..4daa264 100644
--- a/src/zookeeper/contender.cpp
+++ b/src/zookeeper/contender.cpp
@@ -34,10 +34,13 @@
 #include <stout/nothing.hpp>
 #include <stout/option.hpp>
 
-using namespace process;
-
 using std::string;
 
+using process::Failure;
+using process::Future;
+using process::Process;
+using process::Promise;
+
 namespace zookeeper {
 
 class LeaderContenderProcess : public Process<LeaderContenderProcess>
@@ -97,7 +100,7 @@ LeaderContenderProcess::LeaderContenderProcess(
     Group* _group,
     const string& _data,
     const Option<string>& _label)
-  : ProcessBase(ID::generate("leader-contender")),
+  : ProcessBase(process::ID::generate("leader-contender")),
     group(_group),
     data(_data),
     label(_label) {}