Commit f8b94343 authored by Laurent Montel's avatar Laurent Montel 😁

Const'ify

parent 9277d184
...@@ -75,7 +75,7 @@ void AdBlockBlockableItemsJob::handleSearchBlockableImageItems(const QVariant &r ...@@ -75,7 +75,7 @@ void AdBlockBlockableItemsJob::handleSearchBlockableImageItems(const QVariant &r
const QUrl url = mWebEngineView->url(); const QUrl url = mWebEngineView->url();
const QString host = url.host(); const QString host = url.host();
Q_FOREACH (const QVariant &var, lst) { Q_FOREACH (const QVariant &var, lst) {
QMap<QString, QVariant> mapVariant = var.toMap(); const QMap<QString, QVariant> mapVariant = var.toMap();
QString src = mapVariant.value(QStringLiteral("src")).toString(); QString src = mapVariant.value(QStringLiteral("src")).toString();
if (!src.isEmpty()) { if (!src.isEmpty()) {
adaptSource(src, host); adaptSource(src, host);
...@@ -124,7 +124,7 @@ void AdBlockBlockableItemsJob::handleSearchBlockableScriptsItems(const QVariant ...@@ -124,7 +124,7 @@ void AdBlockBlockableItemsJob::handleSearchBlockableScriptsItems(const QVariant
const QUrl url = mWebEngineView->url(); const QUrl url = mWebEngineView->url();
const QString host = url.host(); const QString host = url.host();
Q_FOREACH (const QVariant &var, lst) { Q_FOREACH (const QVariant &var, lst) {
QMap<QString, QVariant> mapVariant = var.toMap(); const QMap<QString, QVariant> mapVariant = var.toMap();
QString src = mapVariant.value(QStringLiteral("src")).toString(); QString src = mapVariant.value(QStringLiteral("src")).toString();
if (!src.isEmpty()) { if (!src.isEmpty()) {
adaptSource(src, host); adaptSource(src, host);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment