[poppler] poppler/SplashOutputDev.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 5 18:23:12 UTC 2019


 poppler/SplashOutputDev.cc |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 18a60f394e13cbf82e35daf47d563abcbb01dd25
Author: Albert Astals Cid <aacid at kde.org>
Date:   Fri Mar 29 17:39:04 2019 +0100

    SplashOutputDev::drawSoftMaskedImage: Rename n to fix shadow warning

diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 846d73eb..544f132d 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -3944,9 +3944,9 @@ void SplashOutputDev::drawSoftMaskedImage(GfxState *state, Object * /* ref */,
   imgMaskData.y = 0;
   imgMaskData.maskStr = nullptr;
   imgMaskData.maskColorMap = nullptr;
-  const unsigned n = 1 << maskColorMap->getBits();
-  imgMaskData.lookup = (SplashColorPtr)gmalloc(n);
-  for (unsigned i = 0; i < n; ++i) {
+  const unsigned imgMaskDataLookupSize = 1 << maskColorMap->getBits();
+  imgMaskData.lookup = (SplashColorPtr)gmalloc(imgMaskDataLookupSize);
+  for (unsigned i = 0; i < imgMaskDataLookupSize; ++i) {
     pix = (unsigned char)i;
     maskColorMap->getGray(&pix, &gray);
     imgMaskData.lookup[i] = colToByte(gray);


More information about the poppler mailing list