refactor: migrate C strings to std::string_view in libtransmission/file.h (#8220)

* refactor: tr_sys_file_open() now takes a std::string_view arg

* refactor: tr_sys_path_copy() now takes a std::string_view arg

* refactor: tr_blocklistSetContent() now takes a std::string_view arg

* refactor: tr_sys_path_remove() now takes a std::string_view arg

* refactor: tr_sys_path_exists() now takes a std::string_view arg

* refactor: tr_sys_dir_create() now takes a std::string_view arg

* refactor: add private stat_sv(), lstat_sv() helpers in file-posix.cc

* refactor: tr_sys_path_is_same() now takes a std::string_view arg

* refactor: tr_sys_path_rename() now takes a std::string_view arg
This commit is contained in:
Charles Kerr
2026-01-25 18:39:50 -06:00
committed by GitHub
parent 4a900b10e7
commit 03fdb6f48e
18 changed files with 113 additions and 143 deletions

View File

@@ -62,6 +62,6 @@ int main(int argc, char** argv)
}
out.close();
tr_sys_path_rename(tmp_result_path.c_str(), result_path.c_str());
tr_sys_path_rename(tmp_result_path, result_path);
return 0;
}