[epub] Fix Windows build

epub_open wants const char*, not QByteArray
remotes/origin/work/aacid/require_optional_dependencies
Nicolas Fella 4 years ago committed by Albert Astals Cid
parent 0553e93121
commit 4202ccf000
  1. 2
      generators/epub/epubdocument.cpp

@ -19,7 +19,7 @@ EpubDocument::EpubDocument(const QString &fileName, const QFont &font)
, mFont(font)
{
#ifdef Q_OS_WIN
mEpub = epub_open(fileName.toUtf8(), 2);
mEpub = epub_open(qUtf8Printable(fileName), 2);
#else
mEpub = epub_open(qPrintable(fileName), 2);
#endif

Loading…
Cancel
Save