mirror of
https://github.com/openharmony/third_party_qrcodegen.git
synced 2026-07-20 23:56:51 -04: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