1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-04 17:18:40 +00:00

added all required consts

This commit is contained in:
Stephen Gaito 2019-06-29 12:42:55 +01:00
parent 1443001a99
commit 1d39d5a3b6
6 changed files with 7 additions and 7 deletions

View File

@ -81,7 +81,7 @@ void CairoBackgroundRenderer::beginTextObject(GfxState *state)
CairoOutputDev::beginTextObject(state);
}
void CairoBackgroundRenderer::beginString(GfxState *state, GooString * str)
void CairoBackgroundRenderer::beginString(GfxState *state, const GooString * str)
{
if (param.proof == 2)
proof_begin_string(state, this);

View File

@ -46,7 +46,7 @@ public:
//for proof
void beginTextObject(GfxState *state);
void beginString(GfxState *state, GooString * str);
void beginString(GfxState *state, const GooString * str);
void endTextObject(GfxState *state);
void updateRender(GfxState *state);

View File

@ -80,7 +80,7 @@ void SplashBackgroundRenderer::beginTextObject(GfxState *state)
SplashOutputDev::beginTextObject(state);
}
void SplashBackgroundRenderer::beginString(GfxState *state, GooString * str)
void SplashBackgroundRenderer::beginString(GfxState *state, const GooString * str)
{
if (param.proof == 2)
proof_begin_string(state, this);

View File

@ -48,7 +48,7 @@ public:
//for proof
void beginTextObject(GfxState *state);
void beginString(GfxState *state, GooString * str);
void beginString(GfxState *state, const GooString * str);
void endTextObject(GfxState *state);
void updateRender(GfxState *state);

View File

@ -126,7 +126,7 @@ struct HTMLRenderer : OutputDev
virtual void eoClip(GfxState * state);
virtual void clipToStrokePath(GfxState * state);
virtual void drawString(GfxState * state, GooString * s);
virtual void drawString(GfxState * state, const GooString * s);
virtual void drawImage(GfxState * state, Object * ref, Stream * str, int width, int height, GfxImageColorMap * colorMap, GBool interpolate, int *maskColors, GBool inlineImg);

View File

@ -23,7 +23,7 @@ using std::none_of;
using std::cerr;
using std::endl;
void HTMLRenderer::drawString(GfxState * state, GooString * s)
void HTMLRenderer::drawString(GfxState * state, const GooString * s)
{
if(s->getLength() == 0)
return;
@ -58,7 +58,7 @@ void HTMLRenderer::drawString(GfxState * state, GooString * s)
// Now ready to output
// get the unicodes
char *p = s->getCString();
const char *p = s->getCString();
int len = s->getLength();
//accumulated displacement of chars in this string, in text object space