Use std::unique_ptr for pdf objects

This commit is contained in:
Felix Kauselmann
2022-11-13 16:17:02 +01:00
parent 0414104067
commit be85954b0c
3 changed files with 14 additions and 35 deletions

View File

@ -165,11 +165,11 @@ class PDFComic : public Comic
private:
// pdf
#if defined Q_OS_MAC && defined USE_PDFKIT
MacOSXPDFComic *pdfComic;
std::unique_ptr<MacOSXPDFComic> pdfComic;
#elif defined USE_PDFIUM
PdfiumComic *pdfComic;
std::unique_ptr<PdfiumComic> pdfComic;
#else
Poppler::Document *pdfComic;
std::unique_ptr<Poppler::Document> pdfComic;
#endif
void renderPage(int page);
// void run();