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/mainwindow.cpp | |
parent | Updated documentation (diff) | |
download | smolbote-f0f8b35e3725b52fba017551837fefe98ebfe63f.tar.xz |
clazy fixes
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 5 |
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)); } } |