]> granicus.if.org Git - imagemagick/commit
simplify boolean expression, found by PVS analyzer (#1318)
authorIlya Shipitsin <chipitsine@gmail.com>
Sat, 22 Sep 2018 22:57:34 +0000 (03:57 +0500)
committerImageMagick <urban-warrior@users.noreply.github.com>
Sat, 22 Sep 2018 22:57:34 +0000 (18:57 -0400)
commit7817d68b5402511a42421b9ed0c5ce9f4c41203f
tree56c76c91e7442ace45e8974f7af9663c98c7d9ca
parente80a3ef4d0a26e89cf7e59ce6c47611ddcd7c6ba
simplify boolean expression, found by PVS analyzer (#1318)

Magick++/lib/Color.cpp 303 warn V728 An excessive check can be simplified. The '(A && B) || (!A && !B)' expression is equivalent to the 'bool(A) == bool(B)' expression.
Magick++/lib/Image.cpp 314 warn V728 An excessive check can be simplified. The '(A && !B) || (!A && B)' expression is equivalent to the 'bool(A) != bool(B)' expression.
Magick++/lib/Color.cpp
Magick++/lib/Image.cpp