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:
parent
b854bf06dc
commit
56455304ff
@ -58,7 +58,7 @@ QString string = toUtf16(encodedString);
|
|||||||
//! [1]
|
//! [1]
|
||||||
QString string = "...";
|
QString string = "...";
|
||||||
auto fromUtf16 = QStringEncoder(QStringEncoder::Utf8);
|
auto fromUtf16 = QStringEncoder(QStringEncoder::Utf8);
|
||||||
QByteArray encodedString = fromUtf16(encodedString);
|
QByteArray encodedString = fromUtf16(string);
|
||||||
//! [1]
|
//! [1]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user