Commit 7a30476b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add missing Q_REQUIRED_RESULT

parent d19399f7
Pipeline #24391 passed with stage
in 54 minutes and 14 seconds
......@@ -31,8 +31,8 @@ struct UrlCacheInfo {
{
}
bool isMalWare() const;
bool isValid() const;
Q_REQUIRED_RESULT bool isMalWare() const;
Q_REQUIRED_RESULT bool isValid() const;
CheckPhishingUrlCache::UrlStatus status = CheckPhishingUrlCache::Unknown;
uint verifyCacheAfterThisTime = 0;
};
......
......@@ -97,7 +97,7 @@ void CheckPhishingUrlJob::parse(const QByteArray &replyStr)
}
}
} else {
qWarning() << " CheckPhishingUrlJob::parse threatTypeStr : " << threatTypeStr;
qCWarning(WEBENGINEVIEWER_LOG) << " CheckPhishingUrlJob::parse threatTypeStr : " << threatTypeStr;
}
}
Q_EMIT result(WebEngineViewer::CheckPhishingUrlUtil::Unknown, d->mUrl);
......
......@@ -30,7 +30,7 @@ struct HashCacheInfo {
{
}
bool isValid() const;
Q_REQUIRED_RESULT bool isValid() const;
HashCacheManager::UrlStatus status = HashCacheManager::Unknown;
uint verifyCacheAfterThisTime = 0;
};
......@@ -52,7 +52,7 @@ public:
void save();
void load();
void addHashStatus(const QByteArray &hash, HashCacheManager::UrlStatus status, uint cacheDuration);
HashCacheManager::UrlStatus hashStatus(const QByteArray &hash);
Q_REQUIRED_RESULT HashCacheManager::UrlStatus hashStatus(const QByteArray &hash);
private:
void clear();
......
......@@ -58,7 +58,7 @@ QString UrlHashing::canonicalizeUrl(QUrl url)
while (!hostname.isEmpty() && hostname.at(0) == QLatin1Char('.')) {
hostname.remove(0, 1);
}
qDebug() << "111111 hostname" << hostname;
qDebug() << "BEFORE hostname" << hostname;
for (int i = hostname.length(); i >= 0; --i) {
if (hostname.at(i) == QLatin1Char('.')) {
hostname.remove(i);
......@@ -66,7 +66,7 @@ QString UrlHashing::canonicalizeUrl(QUrl url)
break;
}
}
qDebug() << "2222222 hostname" << hostname;
qDebug() << "AFTER hostname" << hostname;
mUrl.setHost(hostname);
#endif
QByteArray urlEncoded = url.toEncoded(QUrl::RemoveFragment | QUrl::NormalizePathSegments | QUrl::EncodeUnicode | QUrl::RemoveUserInfo | QUrl::RemovePort | QUrl::RemovePassword);
......
......@@ -34,7 +34,7 @@ public:
createInterfaces(webEngine, ac);
}
QList<QAction *> interceptorUrlActions(const WebEngineViewer::WebHitTestResult &result) const;
Q_REQUIRED_RESULT QList<QAction *> interceptorUrlActions(const WebEngineViewer::WebHitTestResult &result) const;
void createInterfaces(QWebEngineView *webEngine, KActionCollection *ac);
QVector<WebEngineViewer::NetworkPluginUrlInterceptorInterface *> mListInterface;
private:
......
......@@ -62,11 +62,11 @@ public:
void initializePluginList();
void loadPlugin(MailNetworkUrlInterceptorPluginInfo *item);
QVector<WebEngineViewer::NetworkPluginUrlInterceptor *> pluginsList() const;
QString configGroupName() const;
QString configPrefixSettingKey() const;
QVector<PimCommon::PluginUtilData> pluginDataList() const;
NetworkPluginUrlInterceptor *pluginFromIdentifier(const QString &id);
Q_REQUIRED_RESULT QVector<WebEngineViewer::NetworkPluginUrlInterceptor *> pluginsList() const;
Q_REQUIRED_RESULT QString configGroupName() const;
Q_REQUIRED_RESULT QString configPrefixSettingKey() const;
Q_REQUIRED_RESULT QVector<PimCommon::PluginUtilData> pluginDataList() const;
Q_REQUIRED_RESULT NetworkPluginUrlInterceptor *pluginFromIdentifier(const QString &id);
private:
QVector<MailNetworkUrlInterceptorPluginInfo> mPluginList;
QVector<PimCommon::PluginUtilData> mPluginDataList;
......
......@@ -23,7 +23,7 @@
using namespace WebEngineViewer;
namespace {
qreal zoomBy()
constexpr qreal zoomBy()
{
return 20;
}
......
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