From f19650cf8032a7752b1a2a3c148fc5e9a6892041 Mon Sep 17 00:00:00 2001 From: Dimitrios Apostolou Date: Tue, 19 May 2020 19:55:41 +0200 Subject: 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 --- src/network/kernel/qtldurl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/kernel/qtldurl.cpp') 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]) { -- cgit v1.2.3