fixed deprecation warning
This commit is contained in:
parent
0bdd4fc8f0
commit
d42e43f61d
|
@ -369,11 +369,7 @@ namespace libtorrent
|
|||
// and pass in utf8 strings
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
TORRENT_DEPRECATED_PREFIX
|
||||
void rename_file(int index, std::wstring const& new_filename) TORRENT_DEPRECATED
|
||||
{
|
||||
copy_on_write();
|
||||
m_files.rename_file(index, new_filename);
|
||||
}
|
||||
void rename_file(int index, std::wstring const& new_filename) TORRENT_DEPRECATED;
|
||||
#endif // TORRENT_NO_DEPRECATE
|
||||
#endif // TORRENT_USE_WSTRING
|
||||
|
||||
|
|
|
@ -746,6 +746,12 @@ namespace libtorrent
|
|||
|
||||
INVARIANT_CHECK;
|
||||
}
|
||||
|
||||
void torrent_info::rename_file(int index, std::wstring const& new_filename)
|
||||
{
|
||||
copy_on_write();
|
||||
m_files.rename_file(index, new_filename);
|
||||
}
|
||||
#endif // TORRENT_NO_DEPRECATE
|
||||
#endif // TORRENT_USE_WSTRING
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue