diff options
Diffstat (limited to 'net/proxy/proxy_config.h')
-rw-r--r-- | net/proxy/proxy_config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/proxy/proxy_config.h b/net/proxy/proxy_config.h index 0c353ce..f666e93 100644 --- a/net/proxy/proxy_config.h +++ b/net/proxy/proxy_config.h @@ -110,7 +110,7 @@ class NET_EXPORT ProxyConfig { typedef int ID; // Indicates an invalid proxy config. - enum { INVALID_ID = 0 }; + static const ID kInvalidConfigID = 0; ProxyConfig(); ProxyConfig(const ProxyConfig& config); @@ -120,7 +120,7 @@ class NET_EXPORT ProxyConfig { // 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; |