fixed deprecation warning

This commit is contained in:
Arvid Norberg 2013-08-09 07:36:07 +00:00
parent 0bdd4fc8f0
commit d42e43f61d
2 changed files with 7 additions and 5 deletions

View File

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

View File

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