qt: Avoid bogus stringop-overread warning
* lang/qt/src/threadedjobmixin.cpp (_detail::audit_log_as_html): Use QByteArray overload of QString::fromUtf8. -- There's no need to make the code more complicated than necessary. Unless we want to provoke weird compiler warnings. :-)
This commit is contained in:
parent
333241b286
commit
c933269d3a
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user