diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2024-02-23 18:50:24 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2024-03-07 16:06:10 +0100 |
commit | bbeef185dc79a335c983fdd3b503ae10e590458e (patch) | |
tree | 7c39b78388c7255e282b1dbdc6fb9328fd2c3ac5 /src/utils/cpp/tmp_dir.cpp | |
parent | 6597438e4644087529d88c0979b3cef20cabc44d (diff) | |
download | justbuild-bbeef185dc79a335c983fdd3b503ae10e590458e.tar.gz |
TmpDir: Getter should return const ref
... and prohibit moves and move assignments.
Diffstat (limited to 'src/utils/cpp/tmp_dir.cpp')
-rw-r--r-- | src/utils/cpp/tmp_dir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/cpp/tmp_dir.cpp b/src/utils/cpp/tmp_dir.cpp index b0cc4905..987bcbcf 100644 --- a/src/utils/cpp/tmp_dir.cpp +++ b/src/utils/cpp/tmp_dir.cpp @@ -53,7 +53,7 @@ auto TmpDir::Create(std::filesystem::path const& prefix, } } -auto TmpDir::GetPath() const noexcept -> std::filesystem::path { +auto TmpDir::GetPath() const& noexcept -> std::filesystem::path const& { return tmp_dir_; } |