aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/util
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-01-14 06:14:59 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-01-14 06:14:59 -0800
commitdafa125c7b01df1003b96ea2619eb39956f5ddcc (patch)
tree7e80c6c0aad1b8c1b5212c23e4b91b4acefc115d /src/cpp/util
parent6d32e873a6d21758ff854aba9c6f27a7dc548f66 (diff)
parent754bd26e28496f0be294a3b58060ad2fea91f76c (diff)
Merge pull request #4722 from ctiller/cfN
clang-format code
Diffstat (limited to 'src/cpp/util')
-rw-r--r--src/cpp/util/byte_buffer.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cpp/util/byte_buffer.cc b/src/cpp/util/byte_buffer.cc
index 1c1d55271d..df873eb1ce 100644
--- a/src/cpp/util/byte_buffer.cc
+++ b/src/cpp/util/byte_buffer.cc
@@ -79,13 +79,12 @@ size_t ByteBuffer::Length() const {
}
}
-ByteBuffer::ByteBuffer(const ByteBuffer& buf):
- buffer_(grpc_byte_buffer_copy(buf.buffer_)) {
-}
+ByteBuffer::ByteBuffer(const ByteBuffer& buf)
+ : buffer_(grpc_byte_buffer_copy(buf.buffer_)) {}
ByteBuffer& ByteBuffer::operator=(const ByteBuffer& buf) {
- Clear(); // first remove existing data
- buffer_ = grpc_byte_buffer_copy(buf.buffer_); // then copy
+ Clear(); // first remove existing data
+ buffer_ = grpc_byte_buffer_copy(buf.buffer_); // then copy
return *this;
}