Index: Source/modules/geolocation/PositionOptions.h |
diff --git a/Source/modules/geolocation/PositionOptions.h b/Source/modules/geolocation/PositionOptions.h |
index 272270b81a89148703f5ceb1cc08729340224a8d..6885ff8c12d3931e981dcab61529754ffb8e6df9 100644 |
--- a/Source/modules/geolocation/PositionOptions.h |
+++ b/Source/modules/geolocation/PositionOptions.h |
@@ -39,27 +39,25 @@ public: |
bool enableHighAccuracy() const { return m_highAccuracy; } |
void setEnableHighAccuracy(bool enable) { m_highAccuracy = enable; } |
bool hasTimeout() const { return m_hasTimeout; } |
- int timeout() const |
+ unsigned timeout() const |
{ |
ASSERT(hasTimeout()); |
return m_timeout; |
} |
- void setTimeout(int timeout) |
+ void setTimeout(unsigned timeout) |
{ |
- ASSERT(timeout >= 0); |
m_hasTimeout = true; |
m_timeout = timeout; |
} |
bool hasMaximumAge() const { return m_hasMaximumAge; } |
- int maximumAge() const |
+ unsigned maximumAge() const |
{ |
ASSERT(hasMaximumAge()); |
return m_maximumAge; |
} |
void clearMaximumAge() { m_hasMaximumAge = false; } |
- void setMaximumAge(int age) |
+ void setMaximumAge(unsigned age) |
{ |
- ASSERT(age >= 0); |
m_hasMaximumAge = true; |
m_maximumAge = age; |
} |
@@ -74,9 +72,9 @@ private: |
bool m_highAccuracy; |
bool m_hasTimeout; |
- int m_timeout; |
+ unsigned m_timeout; |
bool m_hasMaximumAge; |
- int m_maximumAge; |
+ unsigned m_maximumAge; |
}; |
} // namespace WebCore |