X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FObject.cc;fp=pdf2swf%2Fxpdf%2FObject.cc;h=ddd6da693cd771902347191b52efff2197366b76;hb=c7432833fe3a6469d63fad135151a92e12877b94;hp=6d92c6a3403edaeaa343d3fc7f37f2e0fe6b20b1;hpb=b9ddd4a2ed601bc01ddacc69d2522687a93a94ce;p=swftools.git diff --git a/pdf2swf/xpdf/Object.cc b/pdf2swf/xpdf/Object.cc index 6d92c6a..ddd6da6 100644 --- a/pdf2swf/xpdf/Object.cc +++ b/pdf2swf/xpdf/Object.cc @@ -2,15 +2,16 @@ // // Object.cc // -// Copyright 1996-2002 Glyph & Cog, LLC +// Copyright 1996-2003 Glyph & Cog, LLC // //======================================================================== -#ifdef __GNUC__ +#include + +#ifdef USE_GCC_PRAGMAS #pragma implementation #endif -#include #include #include "Object.h" #include "Array.h" @@ -57,6 +58,13 @@ Object *Object::initDict(XRef *xref) { return this; } +Object *Object::initDict(Dict *dictA) { + initObj(objDict); + dict = dictA; + dict->incRef(); + return this; +} + Object *Object::initStream(Stream *streamA) { initObj(objStream); stream = streamA;