From f0f8b35e3725b52fba017551837fefe98ebfe63f Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 22 Apr 2017 14:22:28 +0200 Subject: clazy fixes --- src/widgets/downloaditemwidget.cpp | 2 +- src/widgets/webviewtabbar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/downloaditemwidget.cpp b/src/widgets/downloaditemwidget.cpp index 57ece0a..02fc215 100644 --- a/src/widgets/downloaditemwidget.cpp +++ b/src/widgets/downloaditemwidget.cpp @@ -92,7 +92,7 @@ void DownloadItemWidget::updateProgress(qint64 value, qint64 total) { ui->progressBar->setMaximum(total); ui->progressBar->setValue(value); - ui->filesize_label->setText(QString("%1 / %2").arg(sizeString(value)).arg(sizeString(total))); + ui->filesize_label->setText(QString("%1 / %2").arg(sizeString(value), sizeString(total))); } void DownloadItemWidget::updateFinished() diff --git a/src/widgets/webviewtabbar.cpp b/src/widgets/webviewtabbar.cpp index 9684e11..429b103 100644 --- a/src/widgets/webviewtabbar.cpp +++ b/src/widgets/webviewtabbar.cpp @@ -96,7 +96,7 @@ int WebViewTabBar::addTab(QWebEngineProfile *profile, const QUrl &url) void WebViewTabBar::setProfile(QWebEngineProfile *profile) { - for(QWebEngineView *view : m_views) { + for(auto view : qAsConst(m_views)) { QWebEnginePage *page = new QWebEnginePage(profile); page->load(view->url()); view->setPage(page); -- cgit v1.2.1