diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-08-20 15:52:58 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-08-20 15:54:13 +0300 |
commit | bcca5d3ac57f17b8d4d34ca8c9172788c8da3dfd (patch) | |
tree | d6c066f337e04d651f42c84619edbc0152ab9340 /src/mbgl/util/http_header.cpp | |
parent | c42b44197ffa012810c50dfa658cf979b08244d4 (diff) | |
download | qtlocation-mapboxgl-upstream/tmpsantos-chrono_overflow.tar.gz |
[core] Remove wrapper for std::chrono::system_clock::now()upstream/tmpsantos-chrono_overflow
Better make it explict now that we no longer cast to time_point<Seconds>
Diffstat (limited to 'src/mbgl/util/http_header.cpp')
-rw-r--r-- | src/mbgl/util/http_header.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/util/http_header.cpp b/src/mbgl/util/http_header.cpp index b318e979fa..6827452efe 100644 --- a/src/mbgl/util/http_header.cpp +++ b/src/mbgl/util/http_header.cpp @@ -23,7 +23,7 @@ CacheControl CacheControl::parse(const std::string& value) { } optional<Timestamp> CacheControl::toTimePoint() const { - return maxAge ? util::now() + Seconds(*maxAge) : optional<Timestamp>{}; + return maxAge ? std::chrono::system_clock::now() + Seconds(*maxAge) : optional<Timestamp>{}; } optional<Timestamp> parseRetryHeaders(const optional<std::string>& retryAfter, |