Index: net/http/http_version.h |
diff --git a/net/http/http_version.h b/net/http/http_version.h |
index 127e7115bf9966614963d3403b4e570a884a79c4..39c2e3df862122eac9936323745db12c0f88b5f1 100644 |
--- a/net/http/http_version.h |
+++ b/net/http/http_version.h |
@@ -13,44 +13,28 @@ namespace net { |
class HttpVersion { |
public: |
// Default constructor (major=0, minor=0). |
- HttpVersion() : value_(0) { } |
+ HttpVersion() : value_(0) {} |
// Build from unsigned major/minor pair. |
- HttpVersion(uint16 major, uint16 minor) : value_(major << 16 | minor) { } |
+ HttpVersion(uint16 major, uint16 minor) : value_(major << 16 | minor) {} |
// Major version number. |
- uint16 major_value() const { |
- return value_ >> 16; |
- } |
+ uint16 major_value() const { return value_ >> 16; } |
// Minor version number. |
- uint16 minor_value() const { |
- return value_ & 0xffff; |
- } |
+ uint16 minor_value() const { return value_ & 0xffff; } |
// Overloaded operators: |
- bool operator==(const HttpVersion& v) const { |
- return value_ == v.value_; |
- } |
- bool operator!=(const HttpVersion& v) const { |
- return value_ != v.value_; |
- } |
- bool operator>(const HttpVersion& v) const { |
- return value_ > v.value_; |
- } |
- bool operator>=(const HttpVersion& v) const { |
- return value_ >= v.value_; |
- } |
- bool operator<(const HttpVersion& v) const { |
- return value_ < v.value_; |
- } |
- bool operator<=(const HttpVersion& v) const { |
- return value_ <= v.value_; |
- } |
+ bool operator==(const HttpVersion& v) const { return value_ == v.value_; } |
+ bool operator!=(const HttpVersion& v) const { return value_ != v.value_; } |
+ bool operator>(const HttpVersion& v) const { return value_ > v.value_; } |
+ bool operator>=(const HttpVersion& v) const { return value_ >= v.value_; } |
+ bool operator<(const HttpVersion& v) const { return value_ < v.value_; } |
+ bool operator<=(const HttpVersion& v) const { return value_ <= v.value_; } |
private: |
- uint32 value_; // Packed as <major>:<minor> |
+ uint32 value_; // Packed as <major>:<minor> |
}; |
} // namespace net |