Chromium Code Reviews| Index: net/proxy/proxy_config.h |
| =================================================================== |
| --- net/proxy/proxy_config.h (revision 98480) |
| +++ net/proxy/proxy_config.h (working copy) |
| @@ -110,7 +110,7 @@ |
| typedef int ID; |
| // Indicates an invalid proxy config. |
| - enum { INVALID_ID = 0 }; |
| + static const ID kInvalidConfigID; |
|
wtc
2011/08/26 21:20:53
Please initialize this to 0 here in this header.
Peter Kasting
2011/08/26 21:32:51
See previous comment.
|
| ProxyConfig(); |
| ProxyConfig(const ProxyConfig& config); |
| @@ -120,7 +120,7 @@ |
| // Used to numerically identify this configuration. |
| ID id() const { return id_; } |
| void set_id(int id) { id_ = id; } |
| - bool is_valid() const { return id_ != INVALID_ID; } |
| + bool is_valid() const { return id_ != kInvalidConfigID; } |
| // Returns true if the given config is equivalent to this config. |
| bool Equals(const ProxyConfig& other) const; |