summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorYuhang Zhao <2546789017@qq.com>2022-05-24 09:51:55 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-06-20 08:56:55 +0000
commitade1cca41b0dde94ef04acbecc686415d303f0bc (patch)
treed8866f453f1addc2a7b0389c003b9ccb9f76be16 /src/network
parentcebb7bdac73723d74e65be3b43a2bd1f36c1b668 (diff)
Network: make Public Suffix List constexpr
Upstream PR: https://github.com/rockdaboot/libpsl/pull/182 The repo owner denied the PR because the library only produces C89-compatible code and constexpr is a C++ feature. Task-number: QTBUG-100485 Change-Id: I9e01705b27022a636a98ac67b19169677d7c7652 Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 797a493f5093187d2a849d9c483b79229a1316f0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/kernel/qurltlds_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qurltlds_p.h b/src/network/kernel/qurltlds_p.h
index d788978845..0639247e19 100644
--- a/src/network/kernel/qurltlds_p.h
+++ b/src/network/kernel/qurltlds_p.h
@@ -2,7 +2,7 @@
The byte array encodes effective tld names. See psl-make-dafsa source for documentation.*/
-static const unsigned char kDafsa[53647] = {
+static constexpr unsigned char kDafsa[53647] = {
0x40, 0x42, 0x4a, 0xa2, 0x40, 0xc1, 0x42, 0xc1, 0x50, 0xa1, 0x43, 0xaf,
0x43, 0x58, 0x43, 0x5d, 0x49, 0xab, 0x51, 0x6f, 0x44, 0xcb, 0x40, 0x7b,
0x47, 0x14, 0x47, 0x05, 0x49, 0x33, 0x4c, 0x44, 0x45, 0x5b, 0x4a, 0xc3,