mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
Changed C++ QrCode class to eliminate const from fields, updated related code.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user