Fix whitespace

This commit is contained in:
Oskari Alaranta 2025-10-20 22:09:19 +03:00
parent 6b6f685f39
commit 61773ea3d9
1 changed files with 3 additions and 3 deletions

View File

@ -416,7 +416,7 @@ static QRInfo generate_data(std::span<const uint8_t> data, ErrorCorrection error
{ {
const size_t nblock = ec_info[group * 2 + 1]; const size_t nblock = ec_info[group * 2 + 1];
const size_t nwords = ec_info[group * 2 + 2]; const size_t nwords = ec_info[group * 2 + 2];
for (size_t i = 0; i < nblock; i++) for (size_t i = 0; i < nblock; i++)
{ {
data_blocks.push_back(data_words.subspan(0, nwords)); data_blocks.push_back(data_words.subspan(0, nwords));
@ -518,7 +518,7 @@ static std::pair<QRCode, QRCode> prepare_matrix(uint8_t version)
for (ssize_t j = -2; j <= 2; j++) for (ssize_t j = -2; j <= 2; j++)
reserved.set(x + j, y + i, true); reserved.set(x + j, y + i, true);
}; };
const auto& coords = s_alignment_coords[version - 1]; const auto& coords = s_alignment_coords[version - 1];
for (size_t i = 0; coords[i]; i++) for (size_t i = 0; coords[i]; i++)
for (size_t j = 0; coords[j]; j++) for (size_t j = 0; coords[j]; j++)
@ -716,7 +716,7 @@ static uint8_t apply_mask_pattern(QRCode& qr_code, const QRCode& reserved)
for (size_t x = 0; x < size; x++) for (size_t x = 0; x < size; x++)
if (!reserved.get(x, y) && mask_pattern_funcs[best_pattern](x, y)) if (!reserved.get(x, y) && mask_pattern_funcs[best_pattern](x, y))
qr_code.toggle(x, y); qr_code.toggle(x, y);
return best_pattern; return best_pattern;
} }