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>
This commit is contained in:
parent
1e17d0e9d7
commit
f19650cf80
@ -84,7 +84,7 @@ static bool containsTLDEntry(QStringView entry, TLDMatchType match)
|
|||||||
Q_ASSERT(tldGroupOffset <= tldIndices[index + 1]);
|
Q_ASSERT(tldGroupOffset <= tldIndices[index + 1]);
|
||||||
// The last extra entry in tldIndices
|
// The last extra entry in tldIndices
|
||||||
// should be equal to the total of all chunks' lengths.
|
// 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
|
// Find which chunk contains the tldGroupOffset
|
||||||
while (tldGroupOffset >= tldChunks[chunk]) {
|
while (tldGroupOffset >= tldChunks[chunk]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user