aboutsummaryrefslogtreecommitdiff
path: root/src/webengine
diff options
context:
space:
mode:
Diffstat (limited to 'src/webengine')
-rw-r--r--src/webengine/urlinterceptor.cpp4
-rw-r--r--src/webengine/webview.cpp2
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>