mirror of
https://github.com/opencv/opencv.git
synced 2026-11-27 03:47:03 -06:00
Fixed several issues found by static analysis
This commit is contained in:
committed by
Maksim Shabunin
parent
d8b1fc45aa
commit
a079c2eb7c
@@ -881,6 +881,8 @@ void QRCodeEncoderImpl::findAutoMaskType()
|
||||
total_modules += 1;
|
||||
}
|
||||
}
|
||||
if (total_modules == 0)
|
||||
continue; // TODO: refactor, extract functions to reduce complexity
|
||||
int modules_percent = dark_modules * 100 / total_modules;
|
||||
int lower_bound = 45;
|
||||
int upper_bound = 55;
|
||||
|
||||
Reference in New Issue
Block a user