From fad0abffec1ba784256daa68c7d52891c2d08825 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 4 Jan 2018 13:16:13 +0100 Subject: Various minor fixes - typo fixes - bumped copyright year - removed a bunch of unused imports - fixed a couple of clazy warnings --- src/webengine/urlinterceptor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/webengine/urlinterceptor.cpp') 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 -#include #include 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))); } -- cgit v1.2.1