From 47dea2cc386bc8f7d9151f5c06d515992dffb5c2 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 4 Apr 2025 21:47:42 -0500 Subject: [PATCH] refactor --- .../src/drives/fuse/remotefuse/remote_server.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp index 79d34efc..5d48ede9 100644 --- a/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp +++ b/repertory/librepertory/src/drives/fuse/remotefuse/remote_server.cpp @@ -1433,12 +1433,12 @@ auto remote_server::winfsp_rename(PVOID /*file_desc*/, PWSTR file_name, -> packet::error_type { REPERTORY_USES_FUNCTION_NAME(); - const auto relative_path = utils::string::to_utf8(file_name); - const auto file_path = construct_path(relative_path); - const auto new_relative_path = utils::string::to_utf8(new_file_name); - const auto new_file_path = construct_path(new_relative_path); + auto relative_path = utils::string::to_utf8(file_name); + auto file_path = construct_path(relative_path); + auto new_relative_path = utils::string::to_utf8(new_file_name); + auto new_file_path = construct_path(new_relative_path); - auto res = -1; + auto res{-1}; errno = ENOENT; if (utils::file::file(file_path).exists()) { res = drive_.rename_file(construct_api_path(file_path),