summaryrefslogtreecommitdiffstats
path: root/src/network/kernel
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2020-05-19 19:55:41 +0200
committerDimitrios Apostolou <jimis@qt.io>2020-06-02 12:01:42 +0200
commitf19650cf8032a7752b1a2a3c148fc5e9a6892041 (patch)
tree533a549b36ec344ff52f26a9bd8416cb959d4c59 /src/network/kernel
parent1e17d0e9d7c8aca0e5c629fb4480ee271a1390f8 (diff)
Convert Q_ASSERT to Q_STATIC_ASSERT
This is now possible because of the earlier commit that changed the const arrays in qurltlds_p.h to constexpr arrays. Change-Id: I37a6a64e250bbe33f7d34b5916595bf6a37aed4a Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/network/kernel')
-rw-r--r--src/network/kernel/qtldurl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qtldurl.cpp b/src/network/kernel/qtldurl.cpp
index c4bc312229..1723acfc5b 100644
--- a/src/network/kernel/qtldurl.cpp
+++ b/src/network/kernel/qtldurl.cpp
@@ -84,7 +84,7 @@ static bool containsTLDEntry(QStringView entry, TLDMatchType match)
Q_ASSERT(tldGroupOffset <= tldIndices[index + 1]);
// The last extra entry in tldIndices
// should be equal to the total of all chunks' lengths.
- Q_ASSERT(tldIndices[tldCount] == tldChunks[tldChunkCount - 1]);
+ Q_STATIC_ASSERT(tldIndices[tldCount] == tldChunks[tldChunkCount - 1]);
// Find which chunk contains the tldGroupOffset
while (tldGroupOffset >= tldChunks[chunk]) {