summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-08 06:56:41 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-08 06:56:41 (GMT)
commit500fe72f295c0b43fccfd36d094eed72d9466f56 (patch)
tree09ef08a86f1713fbaeab50c276b185c548593c16
parentcc7c23837beba4a7a6f2caf8c02584e5462c9837 (diff)
const'ify
-rw-r--r--webengineviewer/src/checkphishingurl/checkphishingurljob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp b/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
index 9c04fd2..025a059 100644
--- a/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
+++ b/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
@@ -61,9 +61,9 @@ void CheckPhishingUrlJob::parse(const QByteArray &replyStr)
} else {
const QVariantList info = answer.value(QStringLiteral("matches")).toList();
if (info.count() == 1) {
- QVariantMap map = info.at(0).toMap();
+ const QVariantMap map = info.at(0).toMap();
if (map[QStringLiteral("threatType")] == QStringLiteral("MALWARE")) {
- QVariantMap urlMap = map[QStringLiteral("threat")].toMap();
+ const QVariantMap urlMap = map[QStringLiteral("threat")].toMap();
if (urlMap.count() == 1) {
if (urlMap[QStringLiteral("url")].toString() == mUrl.toString()) {
Q_EMIT result(WebEngineViewer::CheckPhishingUrlJob::MalWare, mUrl);