diff --git a/lang/qt/src/threadedjobmixin.cpp b/lang/qt/src/threadedjobmixin.cpp index b7963c39..a1438a7f 100644 --- a/lang/qt/src/threadedjobmixin.cpp +++ b/lang/qt/src/threadedjobmixin.cpp @@ -98,8 +98,7 @@ QString _detail::audit_log_as_html(Context *ctx, GpgME::Error &err) } else if ((err = ctx->getAuditLog(data, CMSAuditLogFlags))) { return QString::fromLocal8Bit(err.asString()); } - const QByteArray ba = dp.data(); - return QString::fromUtf8(ba.data(), ba.size()); + return QString::fromUtf8(dp.data()); } return QStringLiteral("Unsupported protocol for Audit Log");