summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qtldurl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/kernel/qtldurl.cpp')
-rw-r--r--src/network/kernel/qtldurl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/network/kernel/qtldurl.cpp b/src/network/kernel/qtldurl.cpp
index 06a7df50ba..4ad11d8c36 100644
--- a/src/network/kernel/qtldurl.cpp
+++ b/src/network/kernel/qtldurl.cpp
@@ -7,9 +7,7 @@
#if QT_CONFIG(topleveldomain)
-#include "qurl.h"
#include "QtCore/qfile.h"
-#include "QtCore/qfileinfo.h"
#include "QtCore/qloggingcategory.h"
#include "QtCore/qstandardpaths.h"
#include "QtCore/qstring.h"
@@ -19,7 +17,7 @@
#endif
#if QT_CONFIG(publicsuffix_qt)
-# include "qurltlds_p.h"
+# include "psl_data.cpp"
#endif
// Defined in src/3rdparty/libpsl/src/lookup_string_in_fixed_set.c
@@ -30,7 +28,9 @@ QT_BEGIN_NAMESPACE
using namespace Qt::StringLiterals;
-Q_LOGGING_CATEGORY(lcTld, "qt.network.tld")
+#if QT_CONFIG(publicsuffix_system)
+Q_STATIC_LOGGING_CATEGORY(lcTld, "qt.network.tld")
+#endif
static constexpr int PSL_NOT_FOUND = -1;
static constexpr int PSL_FLAG_EXCEPTION = 1 << 0;
@@ -214,4 +214,4 @@ Q_NETWORK_EXPORT bool qIsEffectiveTLD(QStringView domain)
QT_END_NAMESPACE
-#endif
+#endif // QT_CONFIG(topleveldomain)