Commit b96c118e authored by Albert Astals Cid's avatar Albert Astals Cid

Comment some unused parameters to calm down compiler warnings when using these...

Comment some unused parameters to calm down compiler warnings when using these heders on external projects with higher warning verbosity
parent 51670972
2005-11-01 Albert Astals Cid <aacid@kde.org>
* poppler/Stream.h:
* poppler/OutputDev.h: Comment some unused parameters to calm down
compiler warnings
2005-10-30 Albert Astals Cid <aacid@kde.org>
* glib/poppler-page.cc
......
......@@ -17,6 +17,7 @@
#include "goo/gtypes.h"
#include "CharTypes.h"
class Dict;
class GooHash;
class GooString;
class GfxState;
......@@ -74,7 +75,7 @@ public:
virtual void setDefaultCTM(double *ctm);
// Start a page.
virtual void startPage(int pageNum, GfxState *state) {}
virtual void startPage(int /*pageNum*/, GfxState * /*state*/) {}
// End a page.
virtual void endPage() {}
......@@ -92,76 +93,76 @@ public:
double *getDefICTM() { return defICTM; }
//----- link borders
virtual void drawLink(Link *link, Catalog *catalog) {}
virtual void drawLink(Link * /*link*/, Catalog * /*catalog*/) {}
//----- save/restore graphics state
virtual void saveState(GfxState *state) {}
virtual void restoreState(GfxState *state) {}
virtual void saveState(GfxState * /*state*/) {}
virtual void restoreState(GfxState * /*state*/) {}
//----- update graphics state
virtual void updateAll(GfxState *state);
virtual void updateCTM(GfxState *state, double m11, double m12,
double m21, double m22, double m31, double m32) {}
virtual void updateLineDash(GfxState *state) {}
virtual void updateFlatness(GfxState *state) {}
virtual void updateLineJoin(GfxState *state) {}
virtual void updateLineCap(GfxState *state) {}
virtual void updateMiterLimit(GfxState *state) {}
virtual void updateLineWidth(GfxState *state) {}
virtual void updateFillColorSpace(GfxState *state) {}
virtual void updateStrokeColorSpace(GfxState *state) {}
virtual void updateFillColor(GfxState *state) {}
virtual void updateStrokeColor(GfxState *state) {}
virtual void updateBlendMode(GfxState *state) {}
virtual void updateFillOpacity(GfxState *state) {}
virtual void updateStrokeOpacity(GfxState *state) {}
virtual void updateFillOverprint(GfxState *state) {}
virtual void updateStrokeOverprint(GfxState *state) {}
virtual void updateCTM(GfxState * /*state*/, double /*m11*/, double /*m12*/,
double /*m21*/, double /*m22*/, double /*m31*/, double /*m32*/) {}
virtual void updateLineDash(GfxState * /*state*/) {}
virtual void updateFlatness(GfxState * /*state*/) {}
virtual void updateLineJoin(GfxState * /*state*/) {}
virtual void updateLineCap(GfxState * /*state*/) {}
virtual void updateMiterLimit(GfxState * /*state*/) {}
virtual void updateLineWidth(GfxState * /*state*/) {}
virtual void updateFillColorSpace(GfxState * /*state*/) {}
virtual void updateStrokeColorSpace(GfxState * /*state*/) {}
virtual void updateFillColor(GfxState * /*state*/) {}
virtual void updateStrokeColor(GfxState * /*state*/) {}
virtual void updateBlendMode(GfxState * /*state*/) {}
virtual void updateFillOpacity(GfxState * /*state*/) {}
virtual void updateStrokeOpacity(GfxState * /*state*/) {}
virtual void updateFillOverprint(GfxState * /*state*/) {}
virtual void updateStrokeOverprint(GfxState * /*state*/) {}
//----- update text state
virtual void updateFont(GfxState *state) {}
virtual void updateTextMat(GfxState *state) {}
virtual void updateCharSpace(GfxState *state) {}
virtual void updateRender(GfxState *state) {}
virtual void updateRise(GfxState *state) {}
virtual void updateWordSpace(GfxState *state) {}
virtual void updateHorizScaling(GfxState *state) {}
virtual void updateTextPos(GfxState *state) {}
virtual void updateTextShift(GfxState *state, double shift) {}
virtual void updateFont(GfxState * /*state*/) {}
virtual void updateTextMat(GfxState * /*state*/) {}
virtual void updateCharSpace(GfxState * /*state*/) {}
virtual void updateRender(GfxState * /*state*/) {}
virtual void updateRise(GfxState * /*state*/) {}
virtual void updateWordSpace(GfxState * /*state*/) {}
virtual void updateHorizScaling(GfxState * /*state*/) {}
virtual void updateTextPos(GfxState * /*state*/) {}
virtual void updateTextShift(GfxState * /*state*/, double /*shift*/) {}
//----- path painting
virtual void stroke(GfxState *state) {}
virtual void fill(GfxState *state) {}
virtual void eoFill(GfxState *state) {}
virtual void tilingPatternFill(GfxState *state, Object *str,
int paintType, Dict *resDict,
double *mat, double *bbox,
int x0, int y0, int x1, int y1,
double xStep, double yStep) {}
virtual void functionShadedFill(GfxState *state,
GfxFunctionShading *shading) {}
virtual void axialShadedFill(GfxState *state, GfxAxialShading *shading) {}
virtual void radialShadedFill(GfxState *state, GfxRadialShading *shading) {}
virtual void stroke(GfxState * /*state*/) {}
virtual void fill(GfxState * /*state*/) {}
virtual void eoFill(GfxState * /*state*/) {}
virtual void tilingPatternFill(GfxState * /*state*/, Object * /*str*/,
int /*paintType*/, Dict * /*resDict*/,
double * /*mat*/, double * /*bbox*/,
int /*x0*/, int /*y0*/, int /*x1*/, int /*y1*/,
double /*xStep*/, double /*yStep*/) {}
virtual void functionShadedFill(GfxState * /*state*/,
GfxFunctionShading * /*shading*/) {}
virtual void axialShadedFill(GfxState * /*state*/, GfxAxialShading * /*shading*/) {}
virtual void radialShadedFill(GfxState * /*state*/, GfxRadialShading * /*shading*/) {}
//----- path clipping
virtual void clip(GfxState *state) {}
virtual void eoClip(GfxState *state) {}
virtual void clip(GfxState * /*state*/) {}
virtual void eoClip(GfxState * /*state*/) {}
//----- text drawing
virtual void beginStringOp(GfxState *state) {}
virtual void endStringOp(GfxState *state) {}
virtual void beginString(GfxState *state, GooString *s) {}
virtual void endString(GfxState *state) {}
virtual void drawChar(GfxState *state, double x, double y,
double dx, double dy,
double originX, double originY,
CharCode code, int nBytes, Unicode *u, int uLen) {}
virtual void drawString(GfxState *state, GooString *s) {}
virtual GBool beginType3Char(GfxState *state, double x, double y,
double dx, double dy,
CharCode code, Unicode *u, int uLen);
virtual void endType3Char(GfxState *state) {}
virtual void endTextObject(GfxState *state) {}
virtual void beginStringOp(GfxState * /*state*/) {}
virtual void endStringOp(GfxState * /*state*/) {}
virtual void beginString(GfxState * /*state*/, GooString * /*s*/) {}
virtual void endString(GfxState * /*state*/) {}
virtual void drawChar(GfxState * /*state*/, double /*x*/, double /*y*/,
double /*dx*/, double /*dy*/,
double /*originX*/, double /*originY*/,
CharCode /*code*/, int /*nBytes*/, Unicode * /*u*/, int /*uLen*/) {}
virtual void drawString(GfxState * /*state*/, GooString * /*s*/) {}
virtual GBool beginType3Char(GfxState * /*state*/, double /*x*/, double /*y*/,
double /*dx*/, double /*dy*/,
CharCode /*code*/, Unicode * /*u*/, int /*uLen*/);
virtual void endType3Char(GfxState * /*state*/) {}
virtual void endTextObject(GfxState * /*state*/) {}
//----- image drawing
virtual void drawImageMask(GfxState *state, Object *ref, Stream *str,
......@@ -189,12 +190,12 @@ public:
#endif
//----- Type 3 font operators
virtual void type3D0(GfxState *state, double wx, double wy) {}
virtual void type3D1(GfxState *state, double wx, double wy,
double llx, double lly, double urx, double ury) {}
virtual void type3D0(GfxState * /*state*/, double /*wx*/, double /*wy*/) {}
virtual void type3D1(GfxState * /*state*/, double /*wx*/, double /*wy*/,
double /*llx*/, double /*lly*/, double /*urx*/, double /*ury*/) {}
//----- PostScript XObjects
virtual void psXObject(Stream *psStream, Stream *level1Stream) {}
virtual void psXObject(Stream * /*psStream*/, Stream * /*level1Stream*/) {}
//----- Profiling
virtual void startProfile();
......
......@@ -106,8 +106,8 @@ public:
virtual GBool isEncoder() { return gFalse; }
// Get image parameters which are defined by the stream contents.
virtual void getImageParams(int *bitsPerComponent,
StreamColorSpaceMode *csMode) {}
virtual void getImageParams(int * /*bitsPerComponent*/,
StreamColorSpaceMode * /*csMode*/) {}
// Add filters to this stream according to the parameters in <dict>.
// Returns the new stream.
......@@ -725,8 +725,8 @@ public:
virtual void reset() {}
virtual int getChar() { return EOF; }
virtual int lookChar() { return EOF; }
virtual GooString *getPSFilter(int psLevel, char *indent) { return NULL; }
virtual GBool isBinary(GBool last = gTrue) { return gFalse; }
virtual GooString *getPSFilter(int /*psLevel*/, char * /*indent*/) { return NULL; }
virtual GBool isBinary(GBool /*last = gTrue*/) { return gFalse; }
};
//------------------------------------------------------------------------
......@@ -742,8 +742,8 @@ public:
virtual void reset();
virtual int getChar();
virtual int lookChar();
virtual GooString *getPSFilter(int psLevel, char *indent) { return NULL; }
virtual GBool isBinary(GBool last = gTrue);
virtual GooString *getPSFilter(int /*psLevel*/, char * /*indent*/) { return NULL; }
virtual GBool isBinary(GBool /*last = gTrue*/);
virtual GBool isEncoder() { return gTrue; }
private:
......@@ -767,8 +767,8 @@ public:
{ return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
virtual int lookChar()
{ return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
virtual GooString *getPSFilter(int psLevel, char *indent) { return NULL; }
virtual GBool isBinary(GBool last = gTrue) { return gFalse; }
virtual GooString *getPSFilter(int /*psLevel*/, char * /*indent*/) { return NULL; }
virtual GBool isBinary(GBool /*last = gTrue*/) { return gFalse; }
virtual GBool isEncoder() { return gTrue; }
private:
......@@ -797,8 +797,8 @@ public:
{ return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
virtual int lookChar()
{ return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
virtual GooString *getPSFilter(int psLevel, char *indent) { return NULL; }
virtual GBool isBinary(GBool last = gTrue) { return gFalse; }
virtual GooString *getPSFilter(int /*psLevel*/, char * /*indent*/) { return NULL; }
virtual GBool isBinary(GBool /*last = gTrue*/) { return gFalse; }
virtual GBool isEncoder() { return gTrue; }
private:
......@@ -827,8 +827,8 @@ public:
{ return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
virtual int lookChar()
{ return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
virtual GooString *getPSFilter(int psLevel, char *indent) { return NULL; }
virtual GBool isBinary(GBool last = gTrue) { return gTrue; }
virtual GooString *getPSFilter(int /*psLevel*/, char * /*indent*/) { return NULL; }
virtual GBool isBinary(GBool /*last = gTrue*/) { return gTrue; }
virtual GBool isEncoder() { return gTrue; }
private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment