diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-04 13:16:13 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-01-04 13:16:13 +0100 |
commit | fad0abffec1ba784256daa68c7d52891c2d08825 (patch) | |
tree | d7d255805500e1f2598ef6aea7b21ca116a1b1df /src/webengine | |
parent | Fixed crash with Settings dialog (diff) | |
download | smolbote-fad0abffec1ba784256daa68c7d52891c2d08825.tar.xz |
Various minor fixes
- typo fixes
- bumped copyright year
- removed a bunch of unused imports
- fixed a couple of clazy warnings
Diffstat (limited to 'src/webengine')
-rw-r--r-- | src/webengine/urlinterceptor.cpp | 4 | ||||
-rw-r--r-- | src/webengine/webview.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/webengine/urlinterceptor.cpp b/src/webengine/urlinterceptor.cpp index 175643e..b8d30cd 100644 --- a/src/webengine/urlinterceptor.cpp +++ b/src/webengine/urlinterceptor.cpp @@ -8,7 +8,6 @@ #include "urlinterceptor.h" #include <QDir> -#include <QFile> #include <QTextStream> UrlRequestInterceptor::UrlRequestInterceptor(const QString &path, QObject *parent) : @@ -19,7 +18,8 @@ UrlRequestInterceptor::UrlRequestInterceptor(const QString &path, QObject *paren #endif QDir hostsD(path); - for(const QString &file : hostsD.entryList(QDir::Files)) { + const QStringList hostFiles = hostsD.entryList(QDir::Files); + for(const QString &file : hostFiles) { qDebug("Parsing hosts.d/%s: %i", qUtf8Printable(file), parseHostfile(hostsD.absoluteFilePath(file))); } diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp index 2e51587..ee9b134 100644 --- a/src/webengine/webview.cpp +++ b/src/webengine/webview.cpp @@ -7,7 +7,6 @@ */ #include "webview.h" -#include <QWebEnginePage> // copy page URL #include <QApplication> @@ -16,7 +15,6 @@ // zoom widget #include <QWidgetAction> #include <QVBoxLayout> -#include <QHBoxLayout> #include <QLabel> #include <QToolButton> #include <QSlider> |