You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2016/04/13 01:16:42 UTC

mesos git commit: Removed superfluous std::move calls in JSON models.

Repository: mesos
Updated Branches:
  refs/heads/master 2155843c3 -> e57da7756


Removed superfluous std::move calls in JSON models.


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

Branch: refs/heads/master
Commit: e57da775627c02a19d0f472ed1442edcbcbb49d5
Parents: 2155843
Author: Benjamin Mahler <bm...@apache.org>
Authored: Tue Apr 12 15:20:30 2016 -0700
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Tue Apr 12 16:12:27 2016 -0700

----------------------------------------------------------------------
 src/common/http.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e57da775/src/common/http.cpp
----------------------------------------------------------------------
diff --git a/src/common/http.cpp b/src/common/http.cpp
index 3a8e9ee..ccf3868 100644
--- a/src/common/http.cpp
+++ b/src/common/http.cpp
@@ -192,7 +192,7 @@ JSON::Object model(const NetworkInfo& info)
   }
 
   if (info.has_labels()) {
-    object.values["labels"] = std::move(model(info.labels()));
+    object.values["labels"] = model(info.labels());
   }
 
   if (info.ip_addresses().size() > 0) {
@@ -241,7 +241,7 @@ JSON::Object model(const TaskStatus& status)
   object.values["timestamp"] = status.timestamp();
 
   if (status.has_labels()) {
-    object.values["labels"] = std::move(model(status.labels()));
+    object.values["labels"] = model(status.labels());
   }
 
   if (status.has_container_status()) {
@@ -285,7 +285,7 @@ JSON::Object model(const Task& task)
   }
 
   if (task.has_labels()) {
-    object.values["labels"] = std::move(model(task.labels()));
+    object.values["labels"] = model(task.labels());
   }
 
   if (task.has_discovery()) {