forked from premiere/premiere-libtorrent
add missing torrent_error_alert::filename function (#629)
This commit is contained in:
parent
0fddd403b2
commit
0b53fb70ad
|
@ -1241,6 +1241,11 @@ namespace libtorrent {
|
|||
return torrent_alert::message() + msg;
|
||||
}
|
||||
|
||||
char const* torrent_error_alert::filename() const
|
||||
{
|
||||
return m_alloc.ptr(m_file_idx);
|
||||
}
|
||||
|
||||
torrent_added_alert::torrent_added_alert(aux::stack_allocator& alloc
|
||||
, torrent_handle const& h)
|
||||
: torrent_alert(alloc, h)
|
||||
|
@ -1783,11 +1788,7 @@ namespace libtorrent {
|
|||
|
||||
char const* file_error_alert::filename() const
|
||||
{
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
return file.c_str();
|
||||
#else
|
||||
return m_alloc.ptr(m_file_idx);
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string file_error_alert::message() const
|
||||
|
|
Loading…
Reference in New Issue