diff options
| author | 2022-01-18 14:33:06 +0000 | |
|---|---|---|
| committer | 2022-01-18 14:33:06 +0000 | |
| commit | 40035385c6ecee61de82b18ff5f823a1ef4db871 (patch) | |
| tree | a705ad2f3097b2e1310e5e579078f5e54234681c /src/inspstring.cpp | |
| parent | Use C++11-style initialisation for the entity map in httpd_stats. (diff) | |
| download | inspircd++-40035385c6ecee61de82b18ff5f823a1ef4db871.tar.gz inspircd++-40035385c6ecee61de82b18ff5f823a1ef4db871.tar.bz2 inspircd++-40035385c6ecee61de82b18ff5f823a1ef4db871.zip | |
Add constexpr to the initialisation of various const static fields.
Diffstat (limited to 'src/inspstring.cpp')
| -rw-r--r-- | src/inspstring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspstring.cpp b/src/inspstring.cpp index e0d0ed296..19fea55b3 100644 --- a/src/inspstring.cpp +++ b/src/inspstring.cpp @@ -134,7 +134,7 @@ std::string Base64::Encode(const void* data, size_t length, const char* table, c buffer.push_back(table[(triple >> 0 * 6) & 63]); } - static const size_t padding_count[] = { 0, 2, 1 }; + static constexpr size_t padding_count[] = { 0, 2, 1 }; if (padding) { // Replace any trailing characters with padding. |
