@@ -18,6 +18,7 @@ see LICENSE file.
1818#include " libtorrent/aux_/vector.hpp"
1919#include " libtorrent/sha1_hash.hpp"
2020#include " libtorrent/download_priority.hpp"
21+ #include " libtorrent/string_view.hpp"
2122#include < functional>
2223#include < string>
2324
@@ -82,12 +83,13 @@ namespace libtorrent {
8283 struct TORRENT_EXPORT storage_params
8384 {
8485 storage_params (file_storage const & f, lt::renamed_files const & mf
85- , std::string const & sp , storage_mode_t const sm
86+ , string_view sp, string_view pfd , storage_mode_t const sm
8687 , aux::vector<download_priority_t , file_index_t > const & prio
8788 , sha1_hash const & ih, bool v1_torrent, bool v2_torrent)
8889 : files(f)
8990 , renamed_files(mf)
9091 , path(sp)
92+ , part_file_dir(pfd)
9193 , mode(sm)
9294 , priorities(prio)
9395 , info_hash(ih)
@@ -96,7 +98,8 @@ namespace libtorrent {
9698 {}
9799 file_storage const & files;
98100 lt::renamed_files const & renamed_files;
99- std::string const & path;
101+ string_view path;
102+ string_view part_file_dir;
100103 storage_mode_t mode{storage_mode_sparse};
101104 aux::vector<download_priority_t , file_index_t > const & priorities;
102105 sha1_hash info_hash;
0 commit comments