diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-01 16:38:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-03 10:30:00 +0100 |
commit | 0dca40256320753fdbd42ac9c7de889026d7d469 (patch) | |
tree | 647d059917e22a0b910f7d6d803bd50ad953edcd /vcl/source/fontsubset | |
parent | b477f791e3e332b41c80782844c4c379212f0fd8 (diff) |
loplugin:constparam in vcl,svtools
Change-Id: I7a3eb2bfda869e9e66db919f929ead60cf8890a4
Reviewed-on: https://gerrit.libreoffice.org/44209
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/fontsubset')
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 8 | ||||
-rw-r--r-- | vcl/source/fontsubset/ttcr.cxx | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index 19e40cb6d61c..098d54b41b2d 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -1770,7 +1770,7 @@ int GetTTGlyphComponents(TrueTypeFont *ttf, sal_uInt32 glyphID, std::vector< sal } int CreateT3FromTTGlyphs(TrueTypeFont *ttf, FILE *outf, const char *fname, - sal_uInt16 *glyphArray, sal_uInt8 *encoding, int nGlyphs, + sal_uInt16 const *glyphArray, sal_uInt8 *encoding, int nGlyphs, int wmode) { ControlPoint *pa; @@ -1923,8 +1923,8 @@ int CreateT3FromTTGlyphs(TrueTypeFont *ttf, FILE *outf, const char *fname, int CreateTTFromTTGlyphs(TrueTypeFont *ttf, const char *fname, - sal_uInt16 *glyphArray, - sal_uInt8 *encoding, + sal_uInt16 const *glyphArray, + sal_uInt8 const *encoding, int nGlyphs, int nNameRecs, NameRecord const *nr) @@ -2178,7 +2178,7 @@ static void DumpSfnts(FILE *outf, sal_uInt8 *sfntP, sal_uInt32 sfntLen) int CreateT42FromTTGlyphs(TrueTypeFont *ttf, FILE *outf, const char *psname, - sal_uInt16 *glyphArray, + sal_uInt16 const *glyphArray, sal_uInt8 *encoding, int nGlyphs) { diff --git a/vcl/source/fontsubset/ttcr.cxx b/vcl/source/fontsubset/ttcr.cxx index 2b30cb35ebc5..6ea929cd728d 100644 --- a/vcl/source/fontsubset/ttcr.cxx +++ b/vcl/source/fontsubset/ttcr.cxx @@ -615,7 +615,7 @@ static sal_uInt8 *PackCmapType0(CmapSubTable const *s, sal_uInt32 *length) return ptr; } -static sal_uInt8 *PackCmapType6(CmapSubTable *s, sal_uInt32 *length) +static sal_uInt8 *PackCmapType6(CmapSubTable const *s, sal_uInt32 *length) { sal_uInt8* ptr = static_cast<sal_uInt8*>(smalloc(s->n*2 + 10)); sal_uInt8 *p = ptr + 10; @@ -642,7 +642,7 @@ static sal_uInt8 *PackCmapType6(CmapSubTable *s, sal_uInt32 *length) } /* XXX it only handles Format 0 encoding tables */ -static sal_uInt8 *PackCmap(CmapSubTable *s, sal_uInt32 *length) +static sal_uInt8 *PackCmap(CmapSubTable const *s, sal_uInt32 *length) { if( s->xg[s->n-1] > 0xff ) return PackCmapType6(s, length); |