Repository: mesos Updated Branches: refs/heads/master 5aa050bfa -> f880b38f2
Code safety: Remove capture by reference of a temporary. For more detail on why this is bad, see MESOS-2629. Review: https://reviews.apache.org/r/36959 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f880b38f Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f880b38f Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/f880b38f Branch: refs/heads/master Commit: f880b38f2ec8390647dde74c84c8dea12bafe93b Parents: 5aa050b Author: Joseph Wu <[email protected]> Authored: Thu Jul 30 16:29:51 2015 -0700 Committer: Benjamin Hindman <[email protected]> Committed: Thu Jul 30 16:29:52 2015 -0700 ---------------------------------------------------------------------- src/master/registrar.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/f880b38f/src/master/registrar.hpp ---------------------------------------------------------------------- diff --git a/src/master/registrar.hpp b/src/master/registrar.hpp index 6bc78c4..c1463c5 100644 --- a/src/master/registrar.hpp +++ b/src/master/registrar.hpp @@ -58,7 +58,7 @@ public: hashset<SlaveID>* slaveIDs, bool strict) { - const Try<bool>& result = perform(registry, slaveIDs, strict); + const Try<bool> result = perform(registry, slaveIDs, strict); success = !result.isError();
