Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Cohen-Scali <rcoscali@cvs.gnome.org>2004-01-20 22:40:53 (GMT)
committer RĂ©mi Cohen-Scali <rcoscali@src.gnome.org>2004-01-20 22:40:53 (GMT)
commit5666bef4e4d831c5a7f500e087f6c74b514831e7 (patch)
tree105cc5861fa9f86d70cb62260b52677d1a31172c
parent02eb5a57b7a7370bea68f38e602730574542444e (diff)
:ThumbColorMap): Changed field init order to match decl and to avoid
2004-01-20 Remi Cohen-Scali <rcoscali@cvs.gnome.org> * xpdf/Thumb.cc (ThumbColorMap::ThumbColorMap): Changed field init order to match decl and to avoid warning. Removed several unused vars. (Thumb::Thumb): Removed unused vars. (Thumb::getPixbufData): Removed unused vars.
-rw-r--r--pdf/xpdf/Thumb.cc17
1 files changed, 4 insertions, 13 deletions
diff --git a/pdf/xpdf/Thumb.cc b/pdf/xpdf/Thumb.cc
index 6c0c3b6..0b3c7a8 100644
--- a/pdf/xpdf/Thumb.cc
+++ b/pdf/xpdf/Thumb.cc
@@ -46,23 +46,16 @@ ThumbColorMap::ThumbColorMap(int bitsA,
GfxColorSpace *csA) :
bits(bitsA),
str(NULL),
- length(0),
- cs(csA)
+ cs(csA),
+ length(0)
{
Object obj1, obj2;
GfxIndexedColorSpace *iCS;
GfxSeparationColorSpace *sepCS;
- int maxPixel, indexHigh;
+ int maxPixel;
Dict *streamDict;
int n;
int baseNComps;
- /* LZW params */
- int colors = 0, early = 0;
- /* CCITTFax params */
- int encoding = 0, rows = 0;
- GBool eol = gFalse, byteAlign = gFalse, eob = gFalse, black = gFalse;
- /* Common params */
- int pred = 0, cols = 0;
ok = gFalse;
maxPixel = (1 << bits) - 1;
@@ -216,8 +209,6 @@ Thumb::Thumb(XRef *xrefA, Object *obj) :
{
Object obj1, obj2;
Dict *dict;
- unsigned int dsize;
- int row, col, comp;
do {
/* Get stream dict */
@@ -312,7 +303,7 @@ Thumb::getPixbufData()
ImageStream *imgstr;
unsigned char *pixbufdata;
unsigned int pixbufdatasize;
- int row, col, i;
+ int row, col;
unsigned char *p;
/* RGB Pixbuf data */