[poppler] poppler/GfxFont.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Oct 2 07:41:28 UTC 2019
poppler/GfxFont.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit f92b2858aa393c8886c35f0db50cc1a3a9603589
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed Oct 2 09:31:54 2019 +0200
GfxCIDFont::getCodeToGIDMap: n is const and an int
diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc
index af3aa221..863fe5d7 100644
--- a/poppler/GfxFont.cc
+++ b/poppler/GfxFont.cc
@@ -2183,7 +2183,6 @@ int *GfxCIDFont::getCodeToGIDMap(FoFiTrueType *ff, int *mapsizep) {
Unicode *vumap = nullptr;
Unicode *tumap = nullptr;
int *codeToGID = nullptr;
- unsigned long n;
int i;
unsigned long code;
int wmode;
@@ -2231,7 +2230,7 @@ int *GfxCIDFont::getCodeToGIDMap(FoFiTrueType *ff, int *mapsizep) {
break;
}
}
- n = 65536;
+ const unsigned int n = 65536;
tumap = new Unicode[n];
humap = new Unicode[n*N_UCS_CANDIDATES];
memset(humap,0,sizeof(Unicode)*n*N_UCS_CANDIDATES);
More information about the poppler
mailing list