From: Michal H. <ms...@gm...> - 2012-01-25 17:37:03
|
Another patch I will merge if nobody objects: --- >From e5c0470704a8aa8301a768f7e479deeca938b8bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eva=20Pe=C5=A1kov=C3=A1?= <car...@gm...> Date: Wed, 25 Jan 2012 18:32:59 +0100 Subject: [PATCH] xpdf: SplashOutputDev::getFont can use const name There are no modification required to the name so make it constant. --- src/xpdf/xpdf/SplashOutputDev.cc | 2 +- src/xpdf/xpdf/SplashOutputDev.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xpdf/xpdf/SplashOutputDev.cc b/src/xpdf/xpdf/SplashOutputDev.cc index f459fd1..281aca0 100644 --- a/src/xpdf/xpdf/SplashOutputDev.cc +++ b/src/xpdf/xpdf/SplashOutputDev.cc @@ -2759,7 +2759,7 @@ void SplashOutputDev::setFillColor(int r, int g, int b) { #endif } -SplashFont *SplashOutputDev::getFont(GString *name, double *textMatA) { +SplashFont *SplashOutputDev::getFont(const GString *name, double *textMatA) { DisplayFontParam *dfp; Ref ref; SplashOutFontFileID *id; diff --git a/src/xpdf/xpdf/SplashOutputDev.h b/src/xpdf/xpdf/SplashOutputDev.h index 811b034..f6fb0c0 100644 --- a/src/xpdf/xpdf/SplashOutputDev.h +++ b/src/xpdf/xpdf/SplashOutputDev.h @@ -187,7 +187,7 @@ public: void setFillColor(int r, int g, int b); // Get a font object for a Base-14 font, using the Latin-1 encoding. - SplashFont *getFont(GString *name, double *textMatA); + SplashFont *getFont(const GString *name, double *textMatA); SplashFont *getCurrentFont() { return font; } -- 1.7.8.3 |