diff options
author | Yuhang Zhao <2546789017@qq.com> | 2022-05-24 09:51:55 +0800 |
---|---|---|
committer | Yuhang Zhao <2546789017@qq.com> | 2022-06-19 16:27:16 +0800 |
commit | 797a493f5093187d2a849d9c483b79229a1316f0 (patch) | |
tree | 53a895bfd2a33b49719b5fbf80fa446004ac2c8f /src/network/kernel | |
parent | 11e6e9bccdacdae1bb3a4ed939ec60f56059b0bf (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.
Pick-to: 6.4
Task-number: QTBUG-100485
Change-Id: I9e01705b27022a636a98ac67b19169677d7c7652
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/network/kernel')
-rw-r--r-- | src/network/kernel/qurltlds_p.h | 2 |
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, |