From cf2fd630b761220ada5afb25b72b3bda45ee4370 Mon Sep 17 00:00:00 2001 From: Jeremiah Morgan Date: Tue, 19 Nov 2024 18:18:02 +0000 Subject: [PATCH] fix type error in get_temp_directory --- libopenage/util/fslike/directory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libopenage/util/fslike/directory.cpp b/libopenage/util/fslike/directory.cpp index 4143e376e3..847ffe4d80 100644 --- a/libopenage/util/fslike/directory.cpp +++ b/libopenage/util/fslike/directory.cpp @@ -294,7 +294,8 @@ std::ostream &Directory::repr(std::ostream &stream) { } Directory Directory::get_temp_directory() { - std::string temp_dir_path = std::filesystem::temp_directory_path() / std::tmpnam(nullptr); + std::filesystem::path path = std::filesystem::temp_directory_path() / std::tmpnam(nullptr); + std::string temp_dir_path = path.string(); bool create = true; Directory directory = Directory(temp_dir_path, create); return directory;