Fix QStringEncoder code example

Make sure the right variable is used

Pick-to: 6.2
Change-Id: Iec6d8392b320b704423ecbd4434270883fa9fd96
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Nicolas Fella 2021-07-02 11:27:09 +02:00
parent b854bf06dc
commit 56455304ff

View File

@ -58,7 +58,7 @@ QString string = toUtf16(encodedString);
//! [1]
QString string = "...";
auto fromUtf16 = QStringEncoder(QStringEncoder::Utf8);
QByteArray encodedString = fromUtf16(encodedString);
QByteArray encodedString = fromUtf16(string);
//! [1]