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

Unified Diff: net/base/host_port_pair.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/base/host_port_pair.h
diff --git a/net/base/host_port_pair.h b/net/base/host_port_pair.h
index a4e5761bcccfe72d2cd3e5c2044352f961ff8939..a7687299797a4a05de94d0533c1d3af26fed177f 100644
--- a/net/base/host_port_pair.h
+++ b/net/base/host_port_pair.h
@@ -44,25 +44,15 @@ class NET_EXPORT HostPortPair {
return host_ == other.host_ && port_ == other.port_;
}
- bool IsEmpty() const {
- return host_.empty() && port_ == 0;
- }
+ bool IsEmpty() const { return host_.empty() && port_ == 0; }
- const std::string& host() const {
- return host_;
- }
+ const std::string& host() const { return host_; }
- uint16 port() const {
- return port_;
- }
+ uint16 port() const { return port_; }
- void set_host(const std::string& in_host) {
- host_ = in_host;
- }
+ void set_host(const std::string& in_host) { host_ = in_host; }
- void set_port(uint16 in_port) {
- port_ = in_port;
- }
+ void set_port(uint16 in_port) { port_ = in_port; }
// ToString() will convert the HostPortPair to "host:port". If |host_| is an
// IPv6 literal, it will add brackets around |host_|.

Powered by Google App Engine
This is Rietveld 408576698