Fixed the build of iWork on linux

This commit is contained in:
Green
2024-11-18 16:48:53 +03:00
parent 024c288e12
commit fea872d779
2 changed files with 10 additions and 4 deletions

View File

@ -80,6 +80,8 @@ int CIWorkFile::Convert2Odf(const std::wstring& sFile, const std::wstring& sOutp
if (libetonyek::EtonyekDocument::CONFIDENCE_NONE == confidence)
return -1;
const std::string sOutputFileA = U_TO_UTF8(sOutputFile);
switch (type)
{
case libetonyek::EtonyekDocument::TYPE_PAGES:
@ -92,7 +94,7 @@ int CIWorkFile::Convert2Odf(const std::wstring& sFile, const std::wstring& sOutp
if (!bRes)
return 1;
std::wofstream output(sOutputFile);
std::wofstream output(sOutputFileA.c_str());
output << content.cstr();
return 0;
}
@ -106,7 +108,7 @@ int CIWorkFile::Convert2Odf(const std::wstring& sFile, const std::wstring& sOutp
if (!bRes)
return 1;
std::wofstream output(sOutputFile.c_str());
std::wofstream output(sOutputFileA.c_str());
output << content.cstr();
return 0;
}
@ -120,7 +122,7 @@ int CIWorkFile::Convert2Odf(const std::wstring& sFile, const std::wstring& sOutp
if (!bRes)
return 1;
std::wofstream output(sOutputFile.c_str());
std::wofstream output(sOutputFileA.c_str());
output << content.cstr();
return 0;
}