diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 15:34:56 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 15:41:50 +0200 |
commit | c9325cea0aa43f328644157dee4eafe3d7b45e6f (patch) | |
tree | 7c688b9cfd8acf45771193f41d69639f9a47dfab /src/buildtool/file_system/file_system_manager.hpp | |
parent | 0e024eb055e6e8272f419e898ae9eefd0085c34f (diff) | |
download | justbuild-c9325cea0aa43f328644157dee4eafe3d7b45e6f.tar.gz |
Name local variables using lower_case
...and private members using lower_case_
Diffstat (limited to 'src/buildtool/file_system/file_system_manager.hpp')
-rw-r--r-- | src/buildtool/file_system/file_system_manager.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/buildtool/file_system/file_system_manager.hpp b/src/buildtool/file_system/file_system_manager.hpp index 529c4064..f7bcaee0 100644 --- a/src/buildtool/file_system/file_system_manager.hpp +++ b/src/buildtool/file_system/file_system_manager.hpp @@ -79,9 +79,9 @@ class FileSystemManager { auto operator=(DirectoryAnchor const&) -> DirectoryAnchor& = delete; auto operator=(DirectoryAnchor&&) -> DirectoryAnchor& = delete; ~DirectoryAnchor() noexcept { - if (not kRestorePath.empty()) { + if (not restore_path_.empty()) { try { - std::filesystem::current_path(kRestorePath); + std::filesystem::current_path(restore_path_); } catch (std::exception const& e) { Logger::Log(LogLevel::Error, e.what()); } @@ -89,14 +89,14 @@ class FileSystemManager { } [[nodiscard]] auto GetRestorePath() const noexcept -> std::filesystem::path const& { - return kRestorePath; + return restore_path_; } private: - std::filesystem::path const kRestorePath; + std::filesystem::path const restore_path_; DirectoryAnchor() - : kRestorePath{FileSystemManager::GetCurrentDirectory()} {} + : restore_path_{FileSystemManager::GetCurrentDirectory()} {} DirectoryAnchor(DirectoryAnchor&&) = default; }; |