aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-04-22 14:22:28 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2017-04-22 14:22:28 +0200
commitf0f8b35e3725b52fba017551837fefe98ebfe63f (patch)
tree82c3182bda9fed9fff7410340792f3b7eca0d4bf /src/mainwindow.cpp
parentUpdated documentation (diff)
downloadsmolbote-f0f8b35e3725b52fba017551837fefe98ebfe63f.tar.xz
clazy fixes
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 307835c..7f6cf0d 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -145,8 +145,9 @@ MainWindow::MainWindow(QUrl defaultUrl, QWidget *parent) :
MainWindow::MainWindow(const QStringList urlList, QWidget *parent) :
MainWindow(QUrl(""), parent)
{
- for(QString url : urlList) {
- addNewTab(QUrl::fromUserInput(url));
+ QStringList::const_iterator i;
+ for(i = urlList.constBegin(); i != urlList.constEnd(); ++i) {
+ addNewTab(QUrl::fromUserInput(*i));
}
}