Commit ec0b68a7 authored by Olivier Churlaud's avatar Olivier Churlaud
Browse files

Update deprecated KArchive method + remove unused variable in

generator_pdf

Reviewer: sandsmark
parent c110c654
......@@ -4583,8 +4583,10 @@ bool Document::saveDocumentArchive( const QString &fileName )
return false;
const QByteArray contentDocXml = contentDoc.toByteArray();
okularArchive.writeFile( QStringLiteral("content.xml"), user.loginName(), userGroup.name(),
contentDocXml.constData(), contentDocXml.length() );
const mode_t perm = 0100644;
okularArchive.writeFile( QStringLiteral("content.xml"), contentDocXml, perm,
user.loginName(), userGroup.name() );
okularArchive.addLocalFile( docPath, docFileName );
okularArchive.addLocalFile( metadataFile.fileName(), QStringLiteral("metadata.xml") );
......
......@@ -1773,6 +1773,7 @@ bool PDFGenerator::supportsOption( SaveOption option ) const
bool PDFGenerator::save( const QString &fileName, SaveOptions options, QString *errorText )
{
Q_UNUSED(errorText);
Poppler::PDFConverter *pdfConv = pdfdoc->pdfConverter();
pdfConv->setOutputFileName( fileName );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment