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

Unified Diff: net/http/http_version.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/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

Powered by Google App Engine
This is Rietveld 408576698