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

Remove qt check

parent 4e9dc0d6
......@@ -642,10 +642,8 @@ QString AdBlockRule::createRegExpFromFilter(const QString &filter) const
parsed.append(QLatin1Char('$'));
break;
}
// fallthrough
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
Q_FALLTHROUGH();
#endif
// fallthrough
Q_FALLTHROUGH();
default:
if (!wordCharacter(c)) {
......
......@@ -33,12 +33,7 @@ DoNotTrackInterceptorInterface::~DoNotTrackInterceptorInterface()
bool DoNotTrackInterceptorInterface::interceptRequest(QWebEngineUrlRequestInfo &info)
{
if (DoNotTrackSettings::doNotTrack()) {
#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
//Laurent Comment it for the moment workaround a bug for QtWebEngine
info.setHttpHeader(QByteArrayLiteral("DNT"), QByteArrayLiteral("1"));
#else
Q_UNUSED(info);
#endif
}
return false;
}
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