From bbeef185dc79a335c983fdd3b503ae10e590458e Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Fri, 23 Feb 2024 18:50:24 +0100 Subject: TmpDir: Getter should return const ref ... and prohibit moves and move assignments. --- src/utils/cpp/tmp_dir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/cpp/tmp_dir.cpp') 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_; } -- cgit v1.2.3