From: tobtoht Date: Tue, 24 May 2022 15:27:39 +0000 (+0200) Subject: Qt6: remove QTextCodec X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=d6f7255e3ecd7ca00da63bbbfa59cd8179cf732c;p=gamesguru%2Ffeather.git Qt6: remove QTextCodec --- diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index 8bcba474..997fb4af 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -516,7 +516,7 @@ void applicationLogHandler(QtMsgType type, const QMessageLogContext &context, co } QString barrayToString(const QByteArray &data) { - return QString(QTextCodec::codecForMib(106)->toUnicode(data)); + return QString::fromUtf8(data); } QString getAccountName() {