diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-01-18 14:36:47 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-01-18 14:36:47 -0800 |
commit | ecd49345b5c500b9ea1da70b15c90b87da3ff55a (patch) | |
tree | 29afa5d2986d5c85a93e126c1d1f1cd1213d82ab /src/cpp/util | |
parent | cf1d6eb4ae1b48958454259f7e26bee9140cbf65 (diff) |
Use clang-format-3.5
Diffstat (limited to 'src/cpp/util')
-rw-r--r-- | src/cpp/util/status.cc | 4 | ||||
-rw-r--r-- | src/cpp/util/time.cc | 4 | ||||
-rw-r--r-- | src/cpp/util/time.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/cpp/util/status.cc b/src/cpp/util/status.cc index e7ca41b752..1ca12d0ae9 100644 --- a/src/cpp/util/status.cc +++ b/src/cpp/util/status.cc @@ -35,7 +35,7 @@ namespace grpc { -const Status& Status::OK = Status(); -const Status& Status::Cancelled = Status(StatusCode::CANCELLED); +const Status &Status::OK = Status(); +const Status &Status::Cancelled = Status(StatusCode::CANCELLED); } // namespace grpc diff --git a/src/cpp/util/time.cc b/src/cpp/util/time.cc index e58dde82a3..7ce7a371f5 100644 --- a/src/cpp/util/time.cc +++ b/src/cpp/util/time.cc @@ -43,8 +43,8 @@ using std::chrono::system_clock; namespace grpc { // TODO(yangg) prevent potential overflow. -void Timepoint2Timespec(const system_clock::time_point& from, - gpr_timespec* to) { +void Timepoint2Timespec(const system_clock::time_point &from, + gpr_timespec *to) { system_clock::duration deadline = from.time_since_epoch(); seconds secs = duration_cast<seconds>(deadline); nanoseconds nsecs = duration_cast<nanoseconds>(deadline - secs); diff --git a/src/cpp/util/time.h b/src/cpp/util/time.h index 338c4f5119..908395c92b 100644 --- a/src/cpp/util/time.h +++ b/src/cpp/util/time.h @@ -41,8 +41,8 @@ namespace grpc { // from and to should be absolute time. -void Timepoint2Timespec(const std::chrono::system_clock::time_point& from, - gpr_timespec* to); +void Timepoint2Timespec(const std::chrono::system_clock::time_point &from, + gpr_timespec *to); std::chrono::system_clock::time_point Timespec2Timepoint(gpr_timespec t); |