(3.4) Fixed several issues found by static analysis
original commit: a079c2eb7c
This commit is contained in:
committed by
Alexander Alekhin
parent
6a889ed3e5
commit
792b7e0629
@@ -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