From 7a942e35ed9194212e21b22b90b902ea3d162370 Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Sun, 28 Jan 2024 22:59:31 +0300 Subject: [PATCH] Use static cast --- lib/file.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/file.cpp b/lib/file.cpp index 8d1bcda..f3d13d1 100644 --- a/lib/file.cpp +++ b/lib/file.cpp @@ -36,8 +36,7 @@ std::ofstream stream(const tmp::file& file, bool binary, bool append) noexcept { mode |= std::ios::binary; } - const fs::path& path = file; - return std::ofstream(path, mode); + return std::ofstream(static_cast(file), mode); } } // namespace