Commit 42e5eea0 authored by Volker Krause's avatar Volker Krause
Browse files

Remove the last use of QTextStream::codec(), which is gone in Qt6

We never set a codec on the stream we get here, so it's always the default,
the codec for the current locale.
parent 92cd7451
Pipeline #157067 passed with stage
in 8 minutes and 36 seconds
......@@ -294,7 +294,9 @@ uint qHash(const KFI::Misc::TFont &key)
// Taken from qdom.cpp
QString encodeText(const QString &str, QTextStream &s)
{
const QTextCodec *const codec = s.codec();
// we never explicitly set the codec on the stream, so the locale
// default codec is fine here
const QTextCodec *const codec = QTextCodec::codecForLocale();
Q_ASSERT(codec);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment