RagePhoto: remove u8path in saveFile
This commit is contained in:
parent
dd60f8d0b7
commit
0611a368a6
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue