Move to constexpr.

This commit is contained in:
Thomas Van Lenten 2020-04-20 10:45:55 -04:00
parent f15ac4091f
commit a8a400da5d

View File

@ -1301,14 +1301,14 @@ class DecodeDataBuilder {
}
private:
static const uint8 kAddUnderscore = 0x80;
static constexpr uint8 kAddUnderscore = 0x80;
static const uint8 kOpAsIs = 0x00;
static const uint8 kOpFirstUpper = 0x40;
static const uint8 kOpFirstLower = 0x20;
static const uint8 kOpAllUpper = 0x60;
static constexpr uint8 kOpAsIs = 0x00;
static constexpr uint8 kOpFirstUpper = 0x40;
static constexpr uint8 kOpFirstLower = 0x20;
static constexpr uint8 kOpAllUpper = 0x60;
static const int kMaxSegmentLen = 0x1f;
static constexpr int kMaxSegmentLen = 0x1f;
void AddChar(const char desired) {
++segment_len_;