[poppler] poppler/XRef.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Sep 17 14:25:42 PDT 2012


 poppler/XRef.cc |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

New commits:
commit 9fad83913791478b63fc76360f1a13e955cdcf4a
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Sep 17 23:15:10 2012 +0200

    Move to init

diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index acbc16a..c8a93b9 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -268,6 +268,9 @@ void XRef::init() {
   mainXRefEntriesOffset = 0;
   xRefStream = gFalse;
   scannedSpecialFlags = gFalse;
+  encrypted = gFalse;
+  permFlags = defPermFlags;
+  ownerPasswordOk = gFalse;
 }
 
 XRef::XRef() {
@@ -277,10 +280,6 @@ XRef::XRef() {
 XRef::XRef(Object *trailerDictA) {
   init();
 
-  encrypted = gFalse;
-  permFlags = defPermFlags;
-  ownerPasswordOk = gFalse;
-
   if (trailerDictA->isDict())
     trailerDict.initDict(trailerDictA->getDict());
 }
@@ -291,10 +290,6 @@ XRef::XRef(BaseStream *strA, Guint pos, Guint mainXRefEntriesOffsetA, GBool *was
   init();
   mainXRefEntriesOffset = mainXRefEntriesOffsetA;
 
-  encrypted = gFalse;
-  permFlags = defPermFlags;
-  ownerPasswordOk = gFalse;
-
   // read the trailer
   str = strA;
   start = str->getStart();


More information about the poppler mailing list