Fixed a lot of issues reported by cppcheck 1.78
This commit is contained in:
@@ -447,10 +447,8 @@ void Imagefloat::calcCroppedHistogram(const ProcParams ¶ms, float scale, LUT
|
||||
#pragma omp for nowait
|
||||
|
||||
for (int y = y1; y < y2; y++) {
|
||||
int i;
|
||||
|
||||
for (int x = x1; x < x2; x++) {
|
||||
i = (int)(facRed * r(y, x) + facGreen * g(y, x) + facBlue * b(y, x));
|
||||
int i = (int)(facRed * r(y, x) + facGreen * g(y, x) + facBlue * b(y, x));
|
||||
|
||||
if (i < 0) {
|
||||
i = 0;
|
||||
|
Reference in New Issue
Block a user