diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 15:17:00 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 15:30:02 +0900 |
| commit | 0b48bb1dbd048c7e5232f457a52838155c085d60 (patch) | |
| tree | 44a9cdb109623923501ac190b0ac5f47839f2fe0 /src/DownloadEngine.h | |
| parent | dd277b33af2a5a58c39142097c3ede5df7f5655d (diff) | |
Use user-defined literals for time units
Diffstat (limited to 'src/DownloadEngine.h')
| -rw-r--r-- | src/DownloadEngine.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DownloadEngine.h b/src/DownloadEngine.h index f6febb29..749092a2 100644 --- a/src/DownloadEngine.h +++ b/src/DownloadEngine.h @@ -269,24 +269,24 @@ public: const std::string& proxyhost, uint16_t proxyport, const std::shared_ptr<SocketCore>& sock, const std::string& options, - std::chrono::seconds timeout = std::chrono::seconds(15)); + std::chrono::seconds timeout = 15_s); void poolSocket(const std::shared_ptr<Request>& request, const std::string& username, const std::shared_ptr<Request>& proxyRequest, const std::shared_ptr<SocketCore>& socket, const std::string& options, - std::chrono::seconds timeout = std::chrono::seconds(15)); + std::chrono::seconds timeout = 15_s); void poolSocket(const std::string& ipaddr, uint16_t port, const std::string& proxyhost, uint16_t proxyport, const std::shared_ptr<SocketCore>& sock, - std::chrono::seconds timeout = std::chrono::seconds(15)); + std::chrono::seconds timeout = 15_s); void poolSocket(const std::shared_ptr<Request>& request, const std::shared_ptr<Request>& proxyRequest, const std::shared_ptr<SocketCore>& socket, - std::chrono::seconds timeout = std::chrono::seconds(15)); + std::chrono::seconds timeout = 15_s); std::shared_ptr<SocketCore> popPooledSocket (const std::string& ipaddr, |
