Simplified QrCode.toSvgString() loop ranges in all language versions except C.

This commit is contained in:
Project Nayuki
2018-08-22 19:32:03 +00:00
parent 62930ef455
commit f3ba9c0837
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -169,8 +169,8 @@ std::string QrCode::toSvgString(int border) const {
sb << "\t<rect width=\"100%\" height=\"100%\" fill=\"#FFFFFF\"/>\n";
sb << "\t<path d=\"";
bool 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;