Fix casts from QByteArray

This commit is contained in:
Jonas Kvinge
2022-09-12 22:39:08 +02:00
parent b5fc19f08a
commit 78d6fd634b
9 changed files with 27 additions and 18 deletions

View File

@@ -352,7 +352,8 @@ void LocalRedirectServer::WriteTemplate() const {
break;
}
page_data.replace(offset, re_match.capturedLength(), tr(re_match.captured(1).toUtf8()));
const QByteArray captured_data = re_match.captured(1).toUtf8();
page_data.replace(offset, re_match.capturedLength(), tr(captured_data.constData()));
offset += re_match.capturedLength();
}