You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2017/05/26 01:25:56 UTC
[2/2] mesos git commit: Fixed minor Formatting.
Fixed minor Formatting.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/51da8c4b
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/51da8c4b
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/51da8c4b
Branch: refs/heads/master
Commit: 51da8c4bff865bd5aeaae6b23c2d02e7cc91b984
Parents: 7c38f29
Author: Michael Park <mp...@apache.org>
Authored: Thu May 25 18:09:21 2017 -0700
Committer: Michael Park <mp...@apache.org>
Committed: Thu May 25 18:25:35 2017 -0700
----------------------------------------------------------------------
src/common/resources.cpp | 4 ++--
src/v1/resources.cpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/51da8c4b/src/common/resources.cpp
----------------------------------------------------------------------
diff --git a/src/common/resources.cpp b/src/common/resources.cpp
index 03e85ec..97c00b2 100644
--- a/src/common/resources.cpp
+++ b/src/common/resources.cpp
@@ -623,7 +623,7 @@ Try<Resources> Resources::parse(
Resources result;
// Validate individual Resource objects.
- foreach(const Resource& resource, resources.get()) {
+ foreach (const Resource& resource, resources.get()) {
// If invalid, propgate error instead of skipping the resource.
Option<Error> error = Resources::validate(resource);
if (error.isSome()) {
@@ -1698,7 +1698,7 @@ Option<Resources> Resources::find(const Resource& target) const
Resources::operator RepeatedPtrField<Resource>() const
{
RepeatedPtrField<Resource> all;
- foreach(const Resource& resource, resources) {
+ foreach (const Resource& resource, resources) {
all.Add()->CopyFrom(resource);
}
http://git-wip-us.apache.org/repos/asf/mesos/blob/51da8c4b/src/v1/resources.cpp
----------------------------------------------------------------------
diff --git a/src/v1/resources.cpp b/src/v1/resources.cpp
index 46a63a0..559b048 100644
--- a/src/v1/resources.cpp
+++ b/src/v1/resources.cpp
@@ -625,7 +625,7 @@ Try<Resources> Resources::parse(
Resources result;
// Validate individual Resource objects.
- foreach(const Resource& resource, resources.get()) {
+ foreach (const Resource& resource, resources.get()) {
// If invalid, propgate error instead of skipping the resource.
Option<Error> error = Resources::validate(resource);
if (error.isSome()) {
@@ -1700,7 +1700,7 @@ Option<Resources> Resources::find(const Resource& target) const
Resources::operator RepeatedPtrField<Resource>() const
{
RepeatedPtrField<Resource> all;
- foreach(const Resource& resource, resources) {
+ foreach (const Resource& resource, resources) {
all.Add()->CopyFrom(resource);
}