From 43987c0f28c44314491008952bcabfbc644383f6 Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Sat, 25 Feb 2017 19:24:56 +0000 Subject: [PATCH] Deleted unused arguments for main(), replaced return code with named constant. --- cpp/QrCodeGeneratorDemo.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpp/QrCodeGeneratorDemo.cpp b/cpp/QrCodeGeneratorDemo.cpp index 8581278..e13f43e 100644 --- a/cpp/QrCodeGeneratorDemo.cpp +++ b/cpp/QrCodeGeneratorDemo.cpp @@ -26,6 +26,7 @@ */ #include +#include #include #include #include @@ -41,11 +42,11 @@ static void printQr(const qrcodegen::QrCode &qr); // The main application program. -int main(int argc, char **argv) { +int main() { doBasicDemo(); doVarietyDemo(); doSegmentDemo(); - return 0; + return EXIT_SUCCESS; }