Repository: mesos
Updated Branches:
  refs/heads/master 1e715819d -> cad6db903


Make common attributes symmetrical to v1 attributes.

This aids in verifying the files are kept in sync.
diff src/common/attributes.cpp src/v1/attributes.cpp should result
in only include and namespace differences.

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


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

Branch: refs/heads/master
Commit: e28b2878f9efa41782ada235d9af2c0d2d0c1046
Parents: 1e71581
Author: Joris Van Remoortere <[email protected]>
Authored: Thu Sep 24 11:26:40 2015 -0700
Committer: Joris Van Remoortere <[email protected]>
Committed: Thu Sep 24 17:47:00 2015 -0700

----------------------------------------------------------------------
 src/common/attributes.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/e28b2878/src/common/attributes.cpp
----------------------------------------------------------------------
diff --git a/src/common/attributes.cpp b/src/common/attributes.cpp
index 8a8d624..3cce9ed 100644
--- a/src/common/attributes.cpp
+++ b/src/common/attributes.cpp
@@ -101,7 +101,7 @@ const Option<Attribute> Attributes::get(const Attribute& 
thatAttribute) const
 }
 
 
-Attribute Attributes::parse(const std::string& name, const std::string& text)
+Attribute Attributes::parse(const string& name, const string& text)
 {
   Attribute attribute;
   Try<Value> result = internal::values::parse(text);
@@ -180,7 +180,7 @@ bool Attributes::isValid(const Attribute& attribute)
 
 template <>
 Value::Scalar Attributes::get(
-    const std::string& name,
+    const string& name,
     const Value::Scalar& scalar) const
 {
   foreach (const Attribute& attribute, attributes) {
@@ -196,7 +196,7 @@ Value::Scalar Attributes::get(
 
 template <>
 Value::Ranges Attributes::get(
-    const std::string& name,
+    const string& name,
     const Value::Ranges& ranges) const
 {
   foreach (const Attribute& attribute, attributes) {
@@ -212,7 +212,7 @@ Value::Ranges Attributes::get(
 
 template <>
 Value::Text Attributes::get(
-    const std::string& name,
+    const string& name,
     const Value::Text& text) const
 {
   foreach (const Attribute& attribute, attributes) {

Reply via email to