Selaa lähdekoodia

Use string for constexpr

Kim Kulling 3 vuotta sitten
vanhempi
commit
e4c383324a
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      code/Common/Base64.cpp

+ 1 - 1
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
     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) {
 static inline char EncodeChar(uint8_t b) {
     return tableEncodeBase64[size_t(b)];
     return tableEncodeBase64[size_t(b)];