Tweaked usages of C++ QrCode::Ecc class to be passed by value instead of const reference.

This commit is contained in:
Project Nayuki
2017-09-06 04:21:56 +00:00
parent 236a999637
commit 8bbfa3938b
3 changed files with 16 additions and 17 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ int main() {
// Creates a single QR Code, then prints it to the console.
static void doBasicDemo() {
const char *text = "Hello, world!"; // User-supplied text
const QrCode::Ecc &errCorLvl = QrCode::Ecc::LOW; // Error correction level
const QrCode::Ecc errCorLvl = QrCode::Ecc::LOW; // Error correction level
// Make and print the QR Code symbol
const QrCode qr = QrCode::encodeText(text, errCorLvl);