diff options
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/xpdf/PDFDoc.cc')
-rw-r--r-- | Build/source/libs/xpdf/xpdf-src/xpdf/PDFDoc.cc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/xpdf/PDFDoc.cc b/Build/source/libs/xpdf/xpdf-src/xpdf/PDFDoc.cc index 7030904214f..a6663ea4222 100644 --- a/Build/source/libs/xpdf/xpdf-src/xpdf/PDFDoc.cc +++ b/Build/source/libs/xpdf/xpdf-src/xpdf/PDFDoc.cc @@ -8,6 +8,10 @@ #include <aconf.h> +#ifdef USE_GCC_PRAGMAS +#pragma implementation +#endif + #include <stdio.h> #include <stdlib.h> #include <stddef.h> @@ -22,7 +26,6 @@ #include "GlobalParams.h" #include "Page.h" #include "Catalog.h" -#include "Annot.h" #include "Stream.h" #include "XRef.h" #include "Link.h" @@ -175,7 +178,6 @@ PDFDoc::PDFDoc(char *fileNameA, GString *ownerPassword, int i, j; #endif #endif /* 0 */ - init(coreA); fileName = new GString(fileNameA); @@ -202,7 +204,7 @@ PDFDoc::PDFDoc(char *fileNameA, GString *ownerPassword, file = _wfopen(fileNameU, wfopenReadMode); } else { #endif /* 0 */ - file = fopen(fileName->getCString(), fopenReadMode); + file = fopen(fileName->getCString(), fopenReadMode); #if 0 } #endif /* 0 */ @@ -261,7 +263,6 @@ void PDFDoc::init(PDFCore *coreA) { str = NULL; xref = NULL; catalog = NULL; - annots = NULL; #ifndef DISABLE_OUTLINE outline = NULL; #endif @@ -334,9 +335,6 @@ GBool PDFDoc::setup2(GString *ownerPassword, GString *userPassword, return gFalse; } - // initialize the Annots object - annots = new Annots(this); - return gTrue; } @@ -349,9 +347,6 @@ PDFDoc::~PDFDoc() { delete outline; } #endif - if (annots) { - delete annots; - } if (catalog) { delete catalog; } @@ -490,7 +485,6 @@ void PDFDoc::displayPageSlice(OutputDev *out, int page, abortCheckCbk, abortCheckCbkData); } - Links *PDFDoc::getLinks(int page) { return catalog->getPage(page)->getLinks(); } |