From c740189bcaa5bc6c073f8b3802303acf5ac36e47 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sat, 10 Apr 2021 22:05:00 +0200 Subject: BrowserTab: drop QString --- src/browsertab.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/browsertab.cpp') diff --git a/src/browsertab.cpp b/src/browsertab.cpp index 593bdd0..f995bc9 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -752,15 +752,13 @@ void BrowserTab::renderPage(const QByteArray &data, const MimeType &mime) } else { - QString page_data = QString( - tr("Unsupported Media Type!\n" + QString page_data = tr("Unsupported Media Type!\n" "\n" "Kristall cannot display the requested document\n" "To view this media, use the File menu to save it to your local drive, then open the saved file in another program that can display the document for you.\n\n" "Details:\n" "- MIME type: %1/%2\n" - "- Size: %3\n") - ).arg(mime.type, mime.subtype, IoUtil::size_human(data.size())); + "- Size: %3\n").arg(mime.type, mime.subtype, IoUtil::size_human(data.size())); if (plaintext_only) document = PlainTextRenderer::render(page_data.toUtf8(), doc_style); -- cgit v1.2.3