aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlerror.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-05-14 14:04:53 +0200
committerLiang Qi <liang.qi@qt.io>2020-05-16 23:50:40 +0200
commit24abd0d14ebd420c275fa4e49ddb1a43b441c74f (patch)
treecaa07379ab70b27f9074155fb8420c84b10c48ae /src/qml/qml/qqmlerror.cpp
parentc7d3ab0d058ce71079c2f49ab20fcbe8ddcde072 (diff)
Compile with latest qtbase dev
Get rid of QTextCodec in QQmlError and qcoloroutput.cpp and etc. Change-Id: I26ab81536d12eb0587d5d9ae747f6a379a4d0b12 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlerror.cpp')
-rw-r--r--src/qml/qml/qqmlerror.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlerror.cpp b/src/qml/qml/qqmlerror.cpp
index da585d2126..c71c33a059 100644
--- a/src/qml/qml/qqmlerror.cpp
+++ b/src/qml/qml/qqmlerror.cpp
@@ -317,9 +317,6 @@ QDebug operator<<(QDebug debug, const QQmlError &error)
if (f.open(QIODevice::ReadOnly)) {
QByteArray data = f.readAll();
QTextStream stream(data, QIODevice::ReadOnly);
-#if QT_CONFIG(textcodec)
- stream.setCodec("UTF-8");
-#endif
const QString code = stream.readAll();
const auto lines = code.splitRef(QLatin1Char('\n'));