summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-08 06:57:22 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-08 06:57:55 (GMT)
commit9e8beaad47a696a6b5b7ef7860227575adb9d21e (patch)
treea75f30b4e90a583123282fed227f8a43e713b5c3
parent500fe72f295c0b43fccfd36d094eed72d9466f56 (diff)
Clean up
-rw-r--r--webengineviewer/src/checkphishingurl/checkphishingurljob.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp b/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
index 025a059..30283b4 100644
--- a/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
+++ b/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
@@ -80,8 +80,6 @@ void CheckPhishingUrlJob::parse(const QByteArray &replyStr)
void CheckPhishingUrlJob::slotCheckUrlFinished(QNetworkReply *reply)
{
parse(reply->readAll());
- //TODO extract info from
- //TODO Q_EMIT result(MessageViewer::CheckPhishingUrlJob:: ?);
reply->deleteLater();
deleteLater();
}
@@ -147,7 +145,7 @@ void CheckPhishingUrlJob::start()
} else if (canStart()) {
QUrl safeUrl = QUrl(QStringLiteral("https://safebrowsing.googleapis.com/v4/threatMatches:find"));
safeUrl.addQueryItem(QStringLiteral("key"), apiKey());
- qDebug() << " safeUrl" << safeUrl;
+ //qDebug() << " safeUrl" << safeUrl;
QNetworkRequest request(safeUrl);
request.setHeader(QNetworkRequest::ContentTypeHeader, QStringLiteral("application/json"));
@@ -168,8 +166,6 @@ void CheckPhishingUrlJob::slotError(QNetworkReply::NetworkError error)
{
QNetworkReply *reply = qobject_cast<QNetworkReply *>(sender());
qCDebug(WEBENGINEVIEWER_LOG)<<" error "<<error << " error string : "<< reply->errorString();
- //mErrorMsg = reply->errorString();
- //FIXME
reply->deleteLater();
Q_EMIT result(WebEngineViewer::CheckPhishingUrlJob::Unknown, mUrl);
deleteLater();