mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
Update deprecated KArchive method + remove unused variable in
generator_pdf Reviewer: sandsmark
This commit is contained in:
parent
c110c65401
commit
ec0b68a756
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue