Renamed variable 'upwards' to 'upward' in drawCodewords() of all language versions, without changing behavior.

This commit is contained in:
Project Nayuki
2017-04-20 04:06:46 +00:00
parent f020833cd4
commit 3e634c9f26
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -348,8 +348,8 @@ void qrcodegen::QrCode::drawCodewords(const std::vector<uint8_t> &data) {
for (int vert = 0; vert < size; vert++) { // Vertical counter
for (int j = 0; j < 2; j++) {
int x = right - j; // Actual x coordinate
bool upwards = ((right & 2) == 0) ^ (x < 6);
int y = upwards ? size - 1 - vert : vert; // Actual y coordinate
bool upward = ((right & 2) == 0) ^ (x < 6);
int y = upward ? size - 1 - vert : vert; // Actual y coordinate
if (!isFunction.at(y).at(x) && i < data.size() * 8) {
modules.at(y).at(x) = ((data.at(i >> 3) >> (7 - (i & 7))) & 1) != 0;
i++;