add missing torrent_error_alert::filename function (#629)

This commit is contained in:
Arvid Norberg 2016-04-20 00:46:42 -04:00
parent 0fddd403b2
commit 0b53fb70ad
1 changed files with 5 additions and 4 deletions

View File

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