Simplified loop ranges without changing visible behavior.

pull/134/head
Project Nayuki 6 years ago
parent 032b47d4e6
commit b3fc497299

@ -218,8 +218,8 @@ public final class QrCode {
sb.append("\t<rect width=\"100%\" height=\"100%\" fill=\"#FFFFFF\"/>\n");
sb.append("\t<path d=\"");
boolean head = true;
for (int y = -border; y < size + border; y++) {
for (int x = -border; x < size + border; x++) {
for (int y = 0; y < size; y++) {
for (int x = 0; x < size; x++) {
if (getModule(x, y)) {
if (head)
head = false;

Loading…
Cancel
Save