diff --git a/c/qrcodegen-demo.c b/c/qrcodegen-demo.c index 36cdec3..05a17c8 100644 --- a/c/qrcodegen-demo.c +++ b/c/qrcodegen-demo.c @@ -300,4 +300,5 @@ static void printQr(const uint8_t qrcode[]) { } fputs("\n", stdout); } + fputs("\n", stdout); } diff --git a/cpp/QrCodeGeneratorDemo.cpp b/cpp/QrCodeGeneratorDemo.cpp index 63951e4..09aba07 100644 --- a/cpp/QrCodeGeneratorDemo.cpp +++ b/cpp/QrCodeGeneratorDemo.cpp @@ -64,8 +64,8 @@ static void doBasicDemo() { // Make and print the QR Code symbol const QrCode qr = QrCode::encodeText(text, errCorLvl); - std::cout << qr.toSvgString(4) << std::endl; printQr(qr); + std::cout << qr.toSvgString(4) << std::endl; } @@ -190,4 +190,5 @@ static void printQr(const QrCode &qr) { } std::cout << std::endl; } + std::cout << std::endl; }