From 8f66fa54ed2ebf1962a97b7b16446f7ed90a71c9 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 30 Aug 2024 21:03:46 -0500 Subject: [PATCH] refactor --- repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp b/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp index 62f86bfb..99081fb5 100644 --- a/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp +++ b/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp @@ -622,12 +622,14 @@ auto winfsp_drive::Mounted(PVOID host) -> NTSTATUS { static_cast(__FUNCTION__), }; - auto ret = STATUS_SUCCESS; + auto ret{STATUS_SUCCESS}; if (not utils::file::change_to_process_directory()) { - return utils::get_last_error_code(); + return static_cast(utils::get_last_error_code()); } - auto *file_system_host = reinterpret_cast(host); + auto *file_system_host{ + reinterpret_cast(host), + }; polling::instance().start(&config_); fm_ = std::make_unique(config_, provider_); server_ = std::make_unique(config_, provider_, *fm_);