From 8fe7878e1e76d0345791421629ec8a66f2bf73be Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Mon, 23 Oct 2017 03:46:22 +0000 Subject: [PATCH] Changed output format of C and C++ demo programs to match design intent and other languages. --- c/qrcodegen-demo.c | 1 + cpp/QrCodeGeneratorDemo.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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; }