poppler/XRef.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
New commits: commit 9fad83913791478b63fc76360f1a13e955cdcf4a Author: Albert Astals Cid <[email protected]> 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(); _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
