From 07a4ddc230c11c7249acd4c0363c6075e939f11b Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Wed, 30 Dec 2020 15:45:03 +0100 Subject: Use multi-arg overload to save memory allocations --- src/browsertab.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/browsertab.cpp') diff --git a/src/browsertab.cpp b/src/browsertab.cpp index 7d4de95..601ddd0 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -646,8 +646,7 @@ Info: MIME Type: %1 File Size: %2 )md") - .arg(mime.type) - .arg(IoUtil::size_human(data.size()))); + .arg(mime.type, data.size())); } assert((document != nullptr) == (doc_type == Text)); @@ -1159,9 +1158,9 @@ bool BrowserTab::startRequest(const QUrl &url, ProtocolHandler::RequestOptions o auto answer = QMessageBox::question( this, "Kristall", - tr("Your client certificate has a host filter enabled and this site does not match the host filter.\r\nNew URL: %1\r\nHost Filter: %2\r\nDo you want to keep the certificate enabled?") - .arg(url.toString(QUrl::FullyEncoded | QUrl::RemoveFragment)) - .arg(this->current_identity.host_filter), + tr("Your client certificate has a host filter enabled and this site does not match the host filter.\r\n" + "New URL: %1\r\nHost Filter: %2\r\nDo you want to keep the certificate enabled?") + .arg(url.toString(QUrl::FullyEncoded | QUrl::RemoveFragment), this->current_identity.host_filter), QMessageBox::Yes | QMessageBox::No, QMessageBox::No ); -- cgit v1.2.3