mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 12:42:31 +00:00
* Added various TextElement flags and replaced WindowPeerInfo with a
WindowText. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@756 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -90,11 +90,6 @@ public:
|
||||
file_list_type* file_list() { return &m_fileList; }
|
||||
tracker_list_type* tracker_list() { return &m_trackerList; }
|
||||
|
||||
const std::string& info_hash() const { return m_download.info_hash(); }
|
||||
std::string info_hash_hex() const { return rak::transform_hex(m_download.info_hash()); }
|
||||
|
||||
std::string local_id_escaped() const { return rak::copy_escape_html(m_download.local_id()); }
|
||||
|
||||
const std::string& message() const { return m_message; }
|
||||
void set_message(const std::string& msg) { m_message = msg; }
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ DownloadStore::is_correct_format(std::string f) {
|
||||
|
||||
for (std::string::const_iterator itr = f.begin(); itr != f.end() - 8; ++itr)
|
||||
if (!(*itr >= '0' && *itr <= '9') &&
|
||||
!(*itr >= 'A' && *itr <= 'F'))
|
||||
!(*itr >= 'A' && *itr <= 'F'))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
@@ -174,7 +174,7 @@ DownloadStore::is_correct_format(std::string f) {
|
||||
|
||||
std::string
|
||||
DownloadStore::create_filename(Download* d) {
|
||||
return m_path + rak::transform_hex(d->info_hash()) + ".torrent";
|
||||
return m_path + rak::transform_hex(d->download()->info_hash()) + ".torrent";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user