]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/Array.cc
kill traces of ltk, incorporate new sources
[evince.git] / pdf / xpdf / Array.cc
index 9681b6854cc981797ce7ab91ecb0b047c0244b71..9c6cb3415a5911531de6470379d941a0c07190c0 100644 (file)
@@ -2,11 +2,13 @@
 //
 // Array.cc
 //
-// Copyright 1996 Derek B. Noonburg
+// Copyright 1996-2002 Glyph & Cog, LLC
 //
 //========================================================================
 
-#ifdef __GNUC__
+#include <aconf.h>
+
+#ifdef USE_GCC_PRAGMAS
 #pragma implementation
 #endif
 
@@ -19,7 +21,8 @@
 // Array
 //------------------------------------------------------------------------
 
-Array::Array() {
+Array::Array(XRef *xrefA) {
+  xref = xrefA;
   elems = NULL;
   size = length = 0;
   ref = 1;
@@ -43,7 +46,7 @@ void Array::add(Object *elem) {
 }
 
 Object *Array::get(int i, Object *obj) {
-  return elems[i].fetch(obj);
+  return elems[i].fetch(xref, obj);
 }
 
 Object *Array::getNF(int i, Object *obj) {