RagePhoto: remove u8path in saveFile

This commit is contained in:
Syping 2024-03-25 13:09:52 +01:00
parent dd60f8d0b7
commit 0611a368a6

View file

@ -988,11 +988,7 @@ bool RagePhoto::saveFile(const char *filename, uint32_t photoFormat)
bool ok; bool ok;
const std::string &sdata = save(photoFormat, &ok); const std::string &sdata = save(photoFormat, &ok);
if (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); std::ofstream ofs(filename, std::ios::out | std::ios::binary | std::ios::trunc);
#endif
if (!ofs.is_open()) { if (!ofs.is_open()) {
m_data->error = Error::Uninitialised; // 0 m_data->error = Error::Uninitialised; // 0
return false; return false;