Commit 8ec3c116 authored by Albert Astals Cid's avatar Albert Astals Cid

GfxFont: Rename local variable cmap to cnameCmap

Fixes shadow warning
parent 7b088899
......@@ -2188,7 +2188,6 @@ int *GfxCIDFont::getCodeToGIDMap(FoFiTrueType *ff, int *mapsizep) {
unsigned long code;
int wmode;
const char **cmapName;
CMap *cMap;
CMapListEntry *lp;
int cmap;
int cmapPlatform, cmapEncoding;
......@@ -2261,14 +2260,15 @@ int *GfxCIDFont::getCodeToGIDMap(FoFiTrueType *ff, int *mapsizep) {
for (cmapName = lp->CMaps;*cmapName != nullptr;cmapName++) {
GooString cname(*cmapName);
if ((cMap = globalParams->getCMap(getCollection(),&cname))
CMap *cnameCMap;
if ((cnameCMap = globalParams->getCMap(getCollection(),&cname))
!= nullptr) {
if (cMap->getWMode()) {
cMap->setReverseMap(vumap,n,1);
if (cnameCMap->getWMode()) {
cnameCMap->setReverseMap(vumap,n,1);
} else {
cMap->setReverseMap(humap,n,N_UCS_CANDIDATES);
cnameCMap->setReverseMap(humap,n,N_UCS_CANDIDATES);
}
cMap->decRefCnt();
cnameCMap->decRefCnt();
}
}
ff->setupGSUB(lp->scriptTag, lp->languageTag);
......
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