summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/file_system_manager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/file_system/file_system_manager.hpp')
-rw-r--r--src/buildtool/file_system/file_system_manager.hpp10
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;
};