| Index: net/quic/iovector.h
|
| diff --git a/net/quic/iovector.h b/net/quic/iovector.h
|
| index 22d2cc9a8cd2ee03bcb2b163bf4f94f11f77b295..356a0c788fbcd1ac24e9ac8090dc9233f28137ce 100644
|
| --- a/net/quic/iovector.h
|
| +++ b/net/quic/iovector.h
|
| @@ -118,7 +118,8 @@ class NET_EXPORT_PRIVATE IOVector {
|
| // It returns the number of bytes actually consumed (it'll only be smaller
|
| // than the requested number if the IOVector contains less data).
|
| size_t Consume(size_t length) {
|
| - if (length == 0) return 0;
|
| + if (length == 0)
|
| + return 0;
|
|
|
| size_t bytes_to_consume = length;
|
| std::vector<struct iovec>::iterator iter = iovec_.begin();
|
| @@ -171,17 +172,15 @@ class NET_EXPORT_PRIVATE IOVector {
|
| // Returns a pointer to one past the last byte of the last block. If the
|
| // IOVector is empty, NULL is returned.
|
| const char* LastBlockEnd() const {
|
| - return iovec_.size() > 0 ?
|
| - static_cast<char *>(iovec_.back().iov_base) + iovec_.back().iov_len :
|
| - NULL;
|
| + return iovec_.size() > 0 ? static_cast<char*>(iovec_.back().iov_base) +
|
| + iovec_.back().iov_len
|
| + : NULL;
|
| }
|
|
|
| // Returns the total number of bytes in the IOVector.
|
| size_t TotalBufferSize() const { return TotalIovecLength(iovec(), Size()); }
|
|
|
| - void Resize(size_t count) {
|
| - iovec_.resize(count);
|
| - }
|
| + void Resize(size_t count) { iovec_.resize(count); }
|
|
|
| private:
|
| std::vector<struct iovec> iovec_;
|
|
|