mirror of
https://github.com/transmission/transmission.git
synced 2026-04-20 00:40:03 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user