From 1e05a91f99874180fc9f12c9e32d1ccefcb6822c Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Fri, 4 Aug 2017 14:30:41 -0400 Subject: [PATCH] added some std:: in public api --- include/libtorrent/peer_connection_handle.hpp | 2 +- include/libtorrent/torrent_info.hpp | 2 +- src/peer_connection_handle.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libtorrent/peer_connection_handle.hpp b/include/libtorrent/peer_connection_handle.hpp index 278d2d906..8337b2cf3 100644 --- a/include/libtorrent/peer_connection_handle.hpp +++ b/include/libtorrent/peer_connection_handle.hpp @@ -104,7 +104,7 @@ struct TORRENT_EXPORT peer_connection_handle void send_buffer(char const* begin, int size, std::uint32_t flags = 0); - time_t last_seen_complete() const; + std::time_t last_seen_complete() const; time_point time_of_last_unchoke() const; bool operator==(peer_connection_handle const& o) const diff --git a/include/libtorrent/torrent_info.hpp b/include/libtorrent/torrent_info.hpp index 017413877..d38e3a6e2 100644 --- a/include/libtorrent/torrent_info.hpp +++ b/include/libtorrent/torrent_info.hpp @@ -493,7 +493,7 @@ namespace libtorrent { // (`posix time`_). If there's no time stamp in the torrent file, the // optional object will be uninitialized. // .. _`posix time`: http://www.opengroup.org/onlinepubs/009695399/functions/time.html - time_t creation_date() const + std::time_t creation_date() const { return m_creation_date; } // ``creator()`` returns the creator string in the torrent. If there is diff --git a/src/peer_connection_handle.cpp b/src/peer_connection_handle.cpp index f450637c4..d992d13d5 100644 --- a/src/peer_connection_handle.cpp +++ b/src/peer_connection_handle.cpp @@ -285,7 +285,7 @@ void peer_connection_handle::send_buffer(char const* begin, int size pc->send_buffer({begin, std::size_t(size)}, flags); } -time_t peer_connection_handle::last_seen_complete() const +std::time_t peer_connection_handle::last_seen_complete() const { std::shared_ptr pc = native_handle(); TORRENT_ASSERT(pc);