]> granicus.if.org Git - imagemagick/commitdiff
Rename of argument
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 3 Sep 2017 17:02:28 +0000 (19:02 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 3 Sep 2017 17:02:43 +0000 (19:02 +0200)
Magick++/lib/Image.cpp

index 999d4fbeea805dcbc9bdebf75ed10d3a48b89a29..d3472773417c35e4ccc7b7ad6ecf86a6a6c5ba72 100644 (file)
@@ -302,7 +302,7 @@ bool Magick::Image::adjoin(void) const
   return(constOptions()->adjoin());
 }
 
-void Magick::Image::alpha(const bool matteFlag_)
+void Magick::Image::alpha(const bool alphaFlag_)
 {
   modifyImage();
 
@@ -311,12 +311,12 @@ void Magick::Image::alpha(const bool matteFlag_)
   // the image already has a matte channel but a matte channel is not
   // desired, then set the matte channel to opaque.
   GetPPException;
-  if ((matteFlag_ && !constImage()->alpha_trait) ||
-      (constImage()->alpha_trait && !matteFlag_))
+  if ((alphaFlag_ && !constImage()->alpha_trait) ||
+      (constImage()->alpha_trait && !alphaFlag_))
     SetImageAlpha(image(),OpaqueAlpha,exceptionInfo);
   ThrowImageException;
 
-  image()->alpha_trait=matteFlag_ ? BlendPixelTrait : UndefinedPixelTrait;
+  image()->alpha_trait=alphaFlag_ ? BlendPixelTrait : UndefinedPixelTrait;
 }
 
 bool Magick::Image::alpha(void) const