summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimage_p.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2014-09-20 17:47:31 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2014-09-22 18:57:12 +0200
commit8f622fef415cacb50f826268282a276502dcc607 (patch)
tree6e419b1baa8c832baef0c373349ae8e5148b95d7 /src/gui/image/qimage_p.h
parentfb8c7953026e12cf97150b5397bdfb9e32d1ca5b (diff)
Prevent a Coverity warning about a dangerous code path
Coverity warns that we may access the gray array without initializing it. The array is initialized if d (the source image depth) is 8. However, when doing ordered dithering, we don't check that depth any more and just use the array. There are instead checks in place for the other dither modes; the one for ordered has been commented out before public history. So, for the love of kittens, put the check back. Change-Id: I1cc5ced8edbb626777e54e9f4e58f152c6b28ddc Reviewed-by: Gunnar Sletta <gunnar@sletta.org> Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui/image/qimage_p.h')
0 files changed, 0 insertions, 0 deletions