diff options
| author | 2022-01-18 14:33:06 +0000 | |
|---|---|---|
| committer | 2022-01-18 14:33:06 +0000 | |
| commit | 40035385c6ecee61de82b18ff5f823a1ef4db871 (patch) | |
| tree | a705ad2f3097b2e1310e5e579078f5e54234681c /src/modules/m_haproxy.cpp | |
| parent | Use C++11-style initialisation for the entity map in httpd_stats. (diff) | |
Add constexpr to the initialisation of various const static fields.
Diffstat (limited to 'src/modules/m_haproxy.cpp')
| -rw-r--r-- | src/modules/m_haproxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_haproxy.cpp b/src/modules/m_haproxy.cpp index 0d25dead8..e55a6fc70 100644 --- a/src/modules/m_haproxy.cpp +++ b/src/modules/m_haproxy.cpp @@ -129,7 +129,7 @@ class HAProxyHookProvider final }; // The signature for a HAProxy PROXY protocol header. -static const char proxy_signature[13] = "\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A"; +static constexpr char proxy_signature[13] = "\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A"; class HAProxyHook final : public IOHookMiddle |
