Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: net/quic/iovector.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698