From 31fd2822f516337f084f85db7e369d0633113b73 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Wed, 25 Nov 2015 13:30:32 +0200 Subject: [core] Replace time_t with std::chrono::seconds Added aliases for std::chrono typedefs (eg. 'Seconds' for std::chrono::seconds). These aliases are used together with templated helper functions to replace time_t with std::chrono::seconds for most cases, in particular for 'modified' and 'expires' values in Response. --- include/mbgl/storage/response.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/mbgl/storage/response.hpp') diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp index 8ab6170ba2..852110cb2a 100644 --- a/include/mbgl/storage/response.hpp +++ b/include/mbgl/storage/response.hpp @@ -1,6 +1,8 @@ #ifndef MBGL_STORAGE_RESPONSE #define MBGL_STORAGE_RESPONSE +#include + #include #include @@ -25,8 +27,8 @@ public: // The actual data of the response. This is guaranteed to never be empty. std::shared_ptr data; - int64_t modified = 0; - int64_t expires = 0; + Seconds modified = Seconds::zero(); + Seconds expires = Seconds::zero(); std::string etag; }; -- cgit v1.2.1