mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-30 17:21:15 +00:00
Tweaked usages of C++ QrCode::Ecc class to be passed by value instead of const reference.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user