Changed C++ QrCode class to eliminate const from fields, updated related code.

This commit is contained in:
Project Nayuki
2017-09-06 04:03:52 +00:00
parent 70a181753a
commit a138e6fbc3
4 changed files with 33 additions and 9 deletions
+2 -2
View File
@@ -166,8 +166,8 @@ static void doSegmentDemo() {
// Prints the given QR Code to the console.
static void printQr(const QrCode &qr) {
int border = 4;
for (int y = -border; y < qr.size + border; y++) {
for (int x = -border; x < qr.size + border; x++) {
for (int y = -border; y < qr.getSize() + border; y++) {
for (int x = -border; x < qr.getSize() + border; x++) {
std::cout << (qr.getModule(x, y) ? "##" : " ");
}
std::cout << std::endl;