From 0611a368a6b881c750b1d1a255eecea753aebe0a Mon Sep 17 00:00:00 2001 From: Syping Date: Mon, 25 Mar 2024 13:09:52 +0100 Subject: [PATCH] RagePhoto: remove u8path in saveFile --- src/core/RagePhoto.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/RagePhoto.cpp b/src/core/RagePhoto.cpp index a34e18c..fa83623 100644 --- a/src/core/RagePhoto.cpp +++ b/src/core/RagePhoto.cpp @@ -988,11 +988,7 @@ bool RagePhoto::saveFile(const char *filename, uint32_t photoFormat) bool ok; const std::string &sdata = save(photoFormat, &ok); if (ok) { -#if (RAGEPHOTO_CXX_STD >= 17) && (__cplusplus >= 201703L) - std::ofstream ofs(std::filesystem::u8path(filename), std::ios::out | std::ios::binary | std::ios::trunc); -#else std::ofstream ofs(filename, std::ios::out | std::ios::binary | std::ios::trunc); -#endif if (!ofs.is_open()) { m_data->error = Error::Uninitialised; // 0 return false;