added some std:: in public api

This commit is contained in:
Alden Torres 2017-08-04 14:30:41 -04:00 committed by Arvid Norberg
parent 5bf28e37b8
commit 1e05a91f99
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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<peer_connection> pc = native_handle();
TORRENT_ASSERT(pc);