Tweaked two comments in QrCode constructor, in all languages except C.

This commit is contained in:
Project Nayuki
2018-10-05 01:47:05 +00:00
parent f63f7f79a6
commit d060e97e03
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -119,14 +119,14 @@ QrCode::QrCode(int ver, Ecc ecl, const vector<uint8_t> &dataCodewords, int mask)
version(ver),
size(MIN_VERSION <= ver && ver <= MAX_VERSION ? ver * 4 + 17 : -1), // Avoid signed overflow undefined behavior
errorCorrectionLevel(ecl),
modules (size, vector<bool>(size)), // Entirely white grid
modules (size, vector<bool>(size)), // Initially all white
isFunction(size, vector<bool>(size)) {
// Check arguments
if (ver < MIN_VERSION || ver > MAX_VERSION || mask < -1 || mask > 7)
throw std::domain_error("Value out of range");
// Draw function patterns, draw all codewords, do masking
// Compute ECC, draw modules, do masking
drawFunctionPatterns();
const vector<uint8_t> allCodewords = addEccAndInterleave(dataCodewords);
drawCodewords(allCodewords);