diff options
author | Karsten Heimrich <karsten.heimrich@qt.io> | 2020-08-12 13:16:27 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2020-08-20 00:58:13 +0200 |
commit | 2766322de37adba37e0d0d4b0054e55edff01c6c (patch) | |
tree | d487d502ee944963e103e11c9726c3efcd8fe041 /tests/auto/corelib/serialization | |
parent | eb7d1cf098df56f8ebf62f02af611a627435a4a1 (diff) |
Move QStringRef and remains to Qt5Compat
Export some private functions from QUtf8 to resolve
undefined symbols in Qt5Compat after moving QStringRef.
Task-number: QTBUG-84437
Change-Id: I9046dcb14ed520d8868a511d79da6e721e26f72b
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/corelib/serialization')
-rw-r--r-- | tests/auto/corelib/serialization/qtextstream/tst_qtextstream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/corelib/serialization/qtextstream/tst_qtextstream.cpp b/tests/auto/corelib/serialization/qtextstream/tst_qtextstream.cpp index 6a09512235..72a69a6dfd 100644 --- a/tests/auto/corelib/serialization/qtextstream/tst_qtextstream.cpp +++ b/tests/auto/corelib/serialization/qtextstream/tst_qtextstream.cpp @@ -2528,10 +2528,10 @@ void tst_QTextStream::stringref_write_operator_ToDevice() stream.setEncoding(QStringConverter::Latin1); stream.setAutoDetectUnicode(true); - const QString expected = "No explicit lengthExplicit length"; + const QStringView expected = u"No explicit lengthExplicit length"; - stream << expected.leftRef(18); - stream << expected.midRef(18); + stream << expected.left(18); + stream << expected.mid(18); stream.flush(); QCOMPARE(buf.buffer().constData(), "No explicit lengthExplicit length"); } |