From e4c383324a61794251b729b4dff75433ff9b6b1b Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 27 Aug 2022 15:11:54 +0200 Subject: [PATCH] Use string for constexpr --- code/Common/Base64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Common/Base64.cpp b/code/Common/Base64.cpp index e55e0ba75..65308f4fd 100644 --- a/code/Common/Base64.cpp +++ b/code/Common/Base64.cpp @@ -57,7 +57,7 @@ static constexpr uint8_t tableDecodeBase64[128] = { 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 0, 0, 0, 0 }; -static constexpr char *tableEncodeBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; +static constexpr char tableEncodeBase64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; static inline char EncodeChar(uint8_t b) { return tableEncodeBase64[size_t(b)];