diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-04-22 14:22:28 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-04-22 14:22:28 +0200 |
commit | f0f8b35e3725b52fba017551837fefe98ebfe63f (patch) | |
tree | 82c3182bda9fed9fff7410340792f3b7eca0d4bf /src/widgets | |
parent | Updated documentation (diff) | |
download | smolbote-f0f8b35e3725b52fba017551837fefe98ebfe63f.tar.xz |
clazy fixes
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/downloaditemwidget.cpp | 2 | ||||
-rw-r--r-- | src/widgets/webviewtabbar.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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); |